Ratio Calculator
calculator_ratioUse this tool to simplify a ratio a : b using GCD. Example: 20 : 30 → 2 : 3.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"a": "<a>",
"b": "<b>"
},
"name": "calculator_ratio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First term of the ratio. | |
| b | Yes | Second term of the ratio. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| gcd | Yes | ||
| result | Yes | ||
| expression | Yes | ||
| simplified_a | Yes | ||
| simplified_b | Yes |