Health
按 Baldwin 公式由身高、年龄与性别估算成人预计肺活量:男 VC(mL) = (27.63 − 0.112×年龄)×身高(cm),女 VC(mL) = (21.78 − 0.101×年龄)×身高(cm)。成人典型肺活量约 3000–5000 mL(男性均值 ~4600,女性 ~3100)。若输入实测肺活量,将计算占预计值百分比并按常用肺功能分级判读(≥80% 正常,70–79% 轻度,60–69% 中度,50–59% 中重度,35–49% 重度,<35% 极重度)。来源:Baldwin 1948、Guyton & Hall、ATS/ERS 分级。为群体平均值,不替代正式肺功能预测方程,不构成医疗建议。
用三种语言从你的代码中调用此工具。
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/vital-capacity-estimator' \
-H 'Content-Type: application/json' \
-d '{"sex":"male","heightCm":180,"ageYears":25,"measuredVc":0,"measuredUnit":"L","decimalPlaces":1}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/vital-capacity-estimator| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| sex | select | 是 | Sex for the Baldwin prediction equation. |
| heightCm | number | 是 | Height in centimeters (100–250). |
| ageYears | number | 是 | Age in years (15–100). |
| measuredVc | number | 否 | Optional measured vital capacity in the selected unit (0.5–9 L or 500–9000 mL); enables % predicted and severity grading. |
| measuredUnit | select | 否 | Unit of the measured vital capacity. |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-vital-capacity-estimator": {
"name": "vital-capacity-estimator",
"description": "按 Baldwin 公式由身高、年龄与性别估算成人预计肺活量:男 VC(mL) = (27.63 − 0.112×年龄)×身高(cm),女 VC(mL) = (21.78 − 0.101×年龄)×身高(cm)。成人典型肺活量约 3000–5000 mL(男性均值 ~4600,女性 ~3100)。若输入实测肺活量,将计算占预计值百分比并按常用肺功能分级判读(≥80% 正常,70–79% 轻度,60–69% 中度,50–59% 中重度,35–49% 重度,<35% 极重度)。来源:Baldwin 1948、Guyton & Hall、ATS/ERS 分级。为群体平均值,不替代正式肺功能预测方程,不构成医疗建议。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=vital-capacity-estimator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "vital-capacity-estimator",
"arguments": {
"sex": "male",
"heightCm": 180,
"ageYears": 25,
"measuredVc": 0,
"measuredUnit": "L",
"decimalPlaces": 1
}
}
}有问题或反馈?请联系 [email protected]
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}