Health
计算种群、资金或资源的倍增/减半时间并检验 70 法则的精度:输入每期复合增长率 g%(负值则为半衰期),输出法则估计 T̂ = 分子/g(可选 70 生态学标准 / 72 金融心算 / 69.3 连续复利精确分子)、离散复利精确值 T = ln2/ln(1+g%)、连续复利 T = ln2/(g/100),以及估计值对精确值的百分比误差。附 ×2/×4/×8/×16(或 ÷2/÷4/÷8/÷16)时刻表与对应数值投影——注意周期利率下 n 倍时间并非严格线性。法则在 g ≈ 2–8% 最准,|g| 越大误差越大(20% 时约 −8%)。与正向计算 N(t) 的 exponential-growth-population 互补,本工具回答「多久翻倍/减半」。
用三种语言从你的代码中调用此工具。
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/population-doubling-time-rule70' \
-H 'Content-Type: application/json' \
-d '{"ratePct":7,"ruleNumerator":"70","initialValue":100}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/population-doubling-time-rule70| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| ratePct | number | 是 | Compound rate per period (years, generations, minutes…). Negative rates compute half-life instead of doubling time. |
| ruleNumerator | select | 是 | — |
| initialValue | number | 是 | Starting amount for the milestone table (population, currency, biomass — any unit). |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-population-doubling-time-rule70": {
"name": "population-doubling-time-rule70",
"description": "计算种群、资金或资源的倍增/减半时间并检验 70 法则的精度:输入每期复合增长率 g%(负值则为半衰期),输出法则估计 T̂ = 分子/g(可选 70 生态学标准 / 72 金融心算 / 69.3 连续复利精确分子)、离散复利精确值 T = ln2/ln(1+g%)、连续复利 T = ln2/(g/100),以及估计值对精确值的百分比误差。附 ×2/×4/×8/×16(或 ÷2/÷4/÷8/÷16)时刻表与对应数值投影——注意周期利率下 n 倍时间并非严格线性。法则在 g ≈ 2–8% 最准,|g| 越大误差越大(20% 时约 −8%)。与正向计算 N(t) 的 exponential-growth-population 互补,本工具回答「多久翻倍/减半」。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=population-doubling-time-rule70",
"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": "population-doubling-time-rule70",
"arguments": {
"ratePct": 7,
"ruleNumerator": "70",
"initialValue": 100
}
}
}有问题或反馈?请联系 [email protected]