Reciprocal Ruler - arithmetic check ($0.01 x402 paid)
ruler_verify_mathVerify settlement arithmetic by comparing expected and actual amounts, returning MATCHED, SHORTFALL, or OVERPAID and an x402 payment challenge when payment is required.
Instructions
Ultra-low-cost ($0.01 USDC on Base) deterministic arithmetic verification (MATCHED / SHORTFALL / OVERPAID). Without payment_header it returns the HTTP 402 challenge; pass the signed x402 payload to complete.
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": {
"expected_amount": "<expected_amount>",
"actual_amount": "<actual_amount>"
},
"name": "ruler_verify_math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Currency code, e.g. KRW or USD. | KRW |
| tolerance | No | Allowed rounding/fee tolerance. | |
| actual_amount | Yes | Actual settled or charged amount. | |
| payment_header | No | Signed x402 payment payload (X-PAYMENT). | |
| expected_amount | Yes | Expected settlement or invoice amount. |