usage_bill_reconstructor
Recomputes a usage-based bill from a customer-supplied tariff (graduated per-meter tiers, optional included allowances, optional fixed charges) and aggregated metered usage, using exact decimal arithmetic. Does not fetch or embed any vendor pricing; it only applies the rules the caller provides, and checks the result against an optional supplied invoice total. Price: 0.05 USDC per completed bounded job on Base.
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": {
"currency": "<currency>",
"minor_unit_digits": "<minor_unit_digits>",
"meters": "<meters>"
},
"name": "usage_bill_reconstructor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meters | Yes | ||
| currency | Yes | ||
| fixed_charges | No | ||
| invoice_total | No | nonnegative decimal, at most minor_unit_digits fractional digits; never rounded | |
| minor_unit_digits | Yes |