Math & Numbers
Calculate the overall ratio and output speed of a multi-stage gear train. i_total = i₁·i₂·…·iₙ (each i = z₂/z₁). Enter tooth pairs per stage and the input speed to get the final output speed.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/gear-train-speed-ratio' \
-H 'Content-Type: application/json' \
-d '{"teethInput":"20,60\n15,45","inputSpeed":1800,"decimalPlaces":4}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/gear-train-speed-ratio| Name | Type | Required | Description |
|---|---|---|---|
| teethInput | textarea | Yes | Each line is one stage: driver teeth, then driven teeth, separated by a comma. Separate stages with new lines or semicolons. |
| inputSpeed | number | No | Optional. If provided, the final output speed is computed. |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-gear-train-speed-ratio": {
"name": "gear-train-speed-ratio",
"description": "Calculate the overall ratio and output speed of a multi-stage gear train. i_total = i₁·i₂·…·iₙ (each i = z₂/z₁). Enter tooth pairs per stage and the input speed to get the final output speed.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=gear-train-speed-ratio",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "gear-train-speed-ratio",
"arguments": {
"teethInput": "20,60\n15,45",
"inputSpeed": 1800,
"decimalPlaces": 4
}
}
}Questions or issues? Contact [email protected]