Math & Numbers
比强度 = σ/ρ,比模量 = E/ρ(可选 E)。输入强度 MPa、密度 g/cm³,输出比强度/比模量,单位 N·m/kg(= kN·m/kg ÷ 1000)。轻量化设计的关键指标:强度高但密度大(如钨)常输给轻合金。常见材料:钛合金约 210、铝合金约 180、碳钢约 50-90 kN·m/kg。
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/specific-strength-calculator' \
-H 'Content-Type: application/json' \
-d '{"strength":950,"density":4.43,"youngsModulus":114000,"decimalPlaces":2}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/specific-strength-calculator| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| strength | number | 是 | Tensile or yield strength in MPa. E.g. Ti-6Al-4V ≈ 950, Al 7075-T6 ≈ 503, AISI 4340 ≈ 1280, carbon-fiber composite ≈ 1500. |
| density | number | 是 | Density in g/cm³. E.g. titanium ≈ 4.43, aluminum ≈ 2.81, steel ≈ 7.85, CFRP ≈ 1.5, tungsten ≈ 19.3. |
| youngsModulus | number | 否 | Young's modulus in MPa. Optional — when given, specific modulus E/ρ is also reported. E.g. titanium ≈ 114000, aluminum ≈ 71700, steel ≈ 200000, CFRP ≈ 150000. |
| decimalPlaces | number | 否 | — |
JSON 结果
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-specific-strength-calculator": {
"name": "specific-strength-calculator",
"description": "比强度 = σ/ρ,比模量 = E/ρ(可选 E)。输入强度 MPa、密度 g/cm³,输出比强度/比模量,单位 N·m/kg(= kN·m/kg ÷ 1000)。轻量化设计的关键指标:强度高但密度大(如钨)常输给轻合金。常见材料:钛合金约 210、铝合金约 180、碳钢约 50-90 kN·m/kg。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=specific-strength-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": "specific-strength-calculator",
"arguments": {
"strength": 950,
"density": 4.43,
"youngsModulus": 114000,
"decimalPlaces": 2
}
}
}有问题或反馈?请联系 [email protected]
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}