compare_decimals
Compare decimal numbers with detailed explanation (handles 0.9 vs 0.11 correctly).
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": "compare_decimals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First decimal number as string | |
| b | Yes | Second decimal number as string |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | ||
| b | No | ||
| code | No | ||
| error | No | ||
| symbol | No | ||
| a_as_float | No | ||
| b_as_float | No | ||
| comparison | No | ||
| difference | No | ||
| description | No | ||
| explanation | No | ||
| larger_number | No |