Fraction calculator
fraction_calculatorExact arithmetic on two fractions (a/b op c/d), reduced to lowest terms. op is one of + - * /. Runs on smart-tools.xyz.
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>",
"operator": "<operator>",
"c": "<c>",
"d": "<d>"
},
"name": "fraction_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Numerator of first fraction (integer) | |
| b | Yes | Denominator of first fraction (integer) | |
| c | Yes | Numerator of second fraction (integer) | |
| d | Yes | Denominator of second fraction (integer) | |
| locale | No | Language for the source_url link (default en) | |
| operator | Yes | Operation |