Math & Numbers
计算放射性核素衰变后的剩余活度:A(t) = A₀·e^(−λt) = A₀·2^(−t/T½),λ = ln2/T½。支持 Bq/kBq/MBq/GBq/Ci/mCi/µCi/dpm 活度单位与秒/分/时/天/年时间单位,输出剩余活度、剩余百分比、衰变常数、已渡半衰期数。示例覆盖 Tc-99m(T½=6.01 h,核医学)与 F-18(T½=109.77 min,PET)。
用三种语言从你的代码中调用此工具。
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/half-life-activity-decay' \
-H 'Content-Type: application/json' \
-d '{"initialActivity":800,"activityUnit":"MBq","halfLife":6.01,"halfLifeUnit":"hours","elapsedTime":6,"timeUnit":"hours","decimalPlaces":2}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/half-life-activity-decay| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| initialActivity | number | 是 | Activity at t = 0 in the selected activity unit. Must be non-negative. |
| activityUnit | select | 是 | Unit of the initial (and remaining) activity. |
| halfLife | number | 是 | Physical half-life in the selected time unit. Must be greater than zero. |
| halfLifeUnit | select | 是 | Time unit of the half-life. |
| elapsedTime | number | 是 |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-half-life-activity-decay": {
"name": "half-life-activity-decay",
"description": "计算放射性核素衰变后的剩余活度:A(t) = A₀·e^(−λt) = A₀·2^(−t/T½),λ = ln2/T½。支持 Bq/kBq/MBq/GBq/Ci/mCi/µCi/dpm 活度单位与秒/分/时/天/年时间单位,输出剩余活度、剩余百分比、衰变常数、已渡半衰期数。示例覆盖 Tc-99m(T½=6.01 h,核医学)与 F-18(T½=109.77 min,PET)。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=half-life-activity-decay",
"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": "half-life-activity-decay",
"arguments": {
"initialActivity": 800,
"activityUnit": "MBq",
"halfLife": 6.01,
"halfLifeUnit": "hours",
"elapsedTime": 6,
"timeUnit": "hours",
"decimalPlaces": 2
}
}
}有问题或反馈?请联系 [email protected]
| Time since the initial activity measurement. Must be non-negative. |
| timeUnit | select | 是 | Time unit of the elapsed time. |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}