Math & Numbers
查表计算四种经典支承梁的最大挠度:悬臂端部集中(δ=PL³/3EI)、悬臂均布(δ=qL⁴/8EI)、简支跨中集中(δ=PL³/48EI)、简支均布(δ=5qL⁴/384EI)。
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/deflection-calculator' \
-H 'Content-Type: application/json' \
-d '{"supportCase":"simplySupportedUDL","P":0,"q":10,"L":4000,"E":210000,"I":83600000,"decimalPlaces":4}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/deflection-calculator| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| supportCase | select | 否 | — |
| P | number | 否 | Required for point-load cases. |
| q | number | 否 | Required for UDL cases. |
| L | number | 是 | — |
| E | number | 是 | Modulus of elasticity in MPa (= N/mm²). Steel ≈ 210000, aluminum ≈ 70000. |
| I | number |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-deflection-calculator": {
"name": "deflection-calculator",
"description": "查表计算四种经典支承梁的最大挠度:悬臂端部集中(δ=PL³/3EI)、悬臂均布(δ=qL⁴/8EI)、简支跨中集中(δ=PL³/48EI)、简支均布(δ=5qL⁴/384EI)。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=deflection-calculator",
"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": "deflection-calculator",
"arguments": {
"supportCase": "simplySupportedUDL",
"P": 0,
"q": 10,
"L": 4000,
"E": 210000,
"I": 83600000,
"decimalPlaces": 4
}
}
}有问题或反馈?请联系 [email protected]
| 是 |
| Area moment of inertia of the cross-section about the bending axis, in mm⁴. |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}