fraction_arithmetic
Perform exact fraction arithmetic: add, subtract, multiply, or divide two fractions and get the reduced result.
Instructions
Adds, subtracts, multiplies, or divides two fractions exactly and returns the reduced result
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": {
"operation": "<operation>",
"firstNumerator": "<firstNumerator>",
"firstDenominator": "<firstDenominator>",
"secondNumerator": "<secondNumerator>",
"secondDenominator": "<secondDenominator>"
},
"name": "fraction_arithmetic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| firstNumerator | Yes | ||
| secondNumerator | Yes | ||
| firstDenominator | Yes | ||
| secondDenominator | Yes |