Health
在血尿素氮(BUN, mg/dL,美国常规)与尿素(mmol/L,SI 国际)之间互转。BUN 测量尿素中的氮;尿素(CH₄N₂O,摩尔质量 60.06 g/mol)含 2 个氮原子(2×14.007 = 28.014)。换算因子固定:BUN mg/dL × 0.357 = 尿素 mmol/L(×2.801 反向)。参考范围(成人):BUN 7–20 mg/dL(尿素 2.5–7.1 mmol/L)。氮质血症 BUN >20 mg/dL(>7.1 mmol/L);明显升高 >50–100 mg/dL。BUN/肌酐比正常 10:1–20:1,肾前性常 >20:1。来源:Young 1987、StatPearls、KDIGO 2012。不构成医疗建议。
用三种语言从你的代码中调用此工具。
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/urea-bun-converter' \
-H 'Content-Type: application/json' \
-d '{"value":20,"sourceUnit":"bun","targetUnit":"urea","decimalPlaces":2}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/urea-bun-converter| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| value | number | 是 | The BUN (mg/dL) or urea (mmol/L) value to convert. |
| sourceUnit | select | 是 | The unit of the input value. |
| targetUnit | select | 是 | The unit to convert into. |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-urea-bun-converter": {
"name": "urea-bun-converter",
"description": "在血尿素氮(BUN, mg/dL,美国常规)与尿素(mmol/L,SI 国际)之间互转。BUN 测量尿素中的氮;尿素(CH₄N₂O,摩尔质量 60.06 g/mol)含 2 个氮原子(2×14.007 = 28.014)。换算因子固定:BUN mg/dL × 0.357 = 尿素 mmol/L(×2.801 反向)。参考范围(成人):BUN 7–20 mg/dL(尿素 2.5–7.1 mmol/L)。氮质血症 BUN >20 mg/dL(>7.1 mmol/L);明显升高 >50–100 mg/dL。BUN/肌酐比正常 10:1–20:1,肾前性常 >20:1。来源:Young 1987、StatPearls、KDIGO 2012。不构成医疗建议。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=urea-bun-converter",
"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": "urea-bun-converter",
"arguments": {
"value": 20,
"sourceUnit": "bun",
"targetUnit": "urea",
"decimalPlaces": 2
}
}
}有问题或反馈?请联系 [email protected]