verify_arithmetic
Recompute arithmetic results to validate claimed outcomes for sum, weighted average, percentage, growth, and product, with strict or tolerance-based matching.
Instructions
Verify that a claimed arithmetic result matches the actual computation. Supports: sum, weighted_average, percentage, growth, product.
REQUIRED INPUT FORMAT — copy this structure exactly: {"claim_type":"weighted_average","values":[100,80,60],"weights":[0.5,0.3,0.2],"claimed_result":84}
Claim types and required fields:
"sum": values[], claimed_result
"weighted_average": values[], weights[], claimed_result
"percentage": part, whole, claimed_result
"growth": values[] (principal), rate, periods, claimed_result
"product": values[], claimed_result
Strict by default — matches to 2 decimal places. Optional "tolerance" for relative tolerance.
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": {
"claim_type": "<claim_type>",
"claimed_result": "<claimed_result>"
},
"name": "verify_arithmetic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | Numerator for "percentage" claim type | |
| rate | No | Growth rate for "growth" claim type | |
| whole | No | Denominator for "percentage" claim type | |
| values | No | Input values (for sum: addends, for growth: [principal], etc.) | |
| periods | No | Number of periods for "growth" claim type | |
| weights | No | Weights for weighted_average (same length as values) | |
| tolerance | No | Optional relative tolerance (e.g., 0.01 for 1%). Default: strict 2-decimal match. | |
| claim_type | Yes | Type of arithmetic claim to verify | |
| claimed_result | Yes | The result being verified |