Math & Numbers
由半衰期计算无载体放射性核素的理论比活度:摩尔活度 A_mol = ln2·N_A/T½(Bq/mol),换算为 Ci/mmol;给定摩尔质量 M 再给出质量比活度 Bq/g 与 Ci/g。参考锚点:无载体 Tc-99m(T½=6.01 h,M≈99)≈ 5.27×10⁶ Ci/g。实际制剂含稳定载体,测得值只会更低。
用三种语言从你的代码中调用此工具。
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/specific-radioactivity' \
-H 'Content-Type: application/json' \
-d '{"halfLife":6.01,"halfLifeUnit":"hours","molarMass":99,"decimalPlaces":2}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/specific-radioactivity| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| halfLife | number | 是 | Physical half-life in the selected time unit. Must be greater than zero. |
| halfLifeUnit | select | 是 | Time unit of the half-life. |
| molarMass | number | 否 | Molar mass of the radionuclide or labelled compound in g/mol; if provided, mass-based specific activity (Bq/g, Ci/g) is computed. |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-specific-radioactivity": {
"name": "specific-radioactivity",
"description": "由半衰期计算无载体放射性核素的理论比活度:摩尔活度 A_mol = ln2·N_A/T½(Bq/mol),换算为 Ci/mmol;给定摩尔质量 M 再给出质量比活度 Bq/g 与 Ci/g。参考锚点:无载体 Tc-99m(T½=6.01 h,M≈99)≈ 5.27×10⁶ Ci/g。实际制剂含稳定载体,测得值只会更低。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=specific-radioactivity",
"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": "specific-radioactivity",
"arguments": {
"halfLife": 6.01,
"halfLifeUnit": "hours",
"molarMass": 99,
"decimalPlaces": 2
}
}
}有问题或反馈?请联系 [email protected]