basic_math
Perform basic arithmetic operations (add, subtract, multiply, divide) with high-precision decimal math. Round results to any precision from 0 to 15 decimal places for accurate outcomes.
Instructions
Perform basic mathematical operations (add, subtract, multiply, divide).
Uses high-precision decimal arithmetic and rounds the result to precision
decimal places (0-15). Supports two or more operands applied left to right.
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>",
"operands": "<operands>"
},
"name": "basic_math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operands | Yes | At least two numbers. | |
| operation | Yes | ||
| precision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||