Math Calculator
MathCalculatorMath Calculator: Math Calculator performs mathematical operations including arithmetic, number properties, base conversions, and expression evaluation. (Cost: 1 credit)
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>"
},
"name": "MathCalculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | First number | |
| b | No | Second number | |
| n | No | Index in Fibonacci sequence (0-1000) | |
| hex | No | Hex string (for fromHex) | |
| angle | No | Angle unit for trigonometric functions: rad (default) or deg | |
| value | No | Value to convert (for baseConvert) | |
| binary | No | Binary string (for fromBinary) | |
| number | No | Number to operate on | |
| toBase | No | Target base 2-36 (for baseConvert) | |
| fromBase | No | Source base 2-36 (for baseConvert) | |
| operation | Yes | Operation to perform | |
| variables | No | Values for names used in the expression, comma-separated (e.g., x=4,y=2.5) | |
| expression | No | The expression to evaluate (e.g., 2^10 + sqrt(16), sin(pi/2), x^2 + 3x with variables x=4). Up to 500 characters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |