Recomputes a usage-based bill from a customer-supplied tariff (graduated per-meter tiers, optiona...
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
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.
nonnegative decimal, at most minor_unit_digits fractional digits; never rounded
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.
| Argument | Type | Description |
|---|---|---|
| meters* | array | |
| currency* | string | |
| fixed_charges | array | |
| invoice_total | string | nonnegative decimal, at most minor_unit_digits fractional digits; never rounded |
| minor_unit_digits* | integer |
{
"type": "object",
"required": [
"currency",
"minor_unit_digits",
"meters"
],
"properties": {
"meters": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"quantity",
"tiers"
],
"properties": {
"id": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"tiers": {
"type": "array",
"items": {
"type": "object",
"required": [
"up_to",
"unit_price"
],
"properties": {
"up_to": {
"type": [
"string",
"null"
],
"description": "nonnegative decimal or null for the final unlimited tier"
},
"unit_price": {
"type": "string",
"description": "nonnegative decimal, <=9 fractional digits"
}
},
"additionalProperties": false
},
"maxItems": 20,
"minItems": 1
},
"quantity": {
"type": "string",
"description": "nonnegative decimal, <=6 fractional digits"
},
"included_quantity": {
"type": "string",
"description": "nonnegative decimal, <=6 fractional digits"
}
},
"additionalProperties": false
},
"maxItems": 100
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,10}$"
},
"fixed_charges": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"amount"
],
"properties": {
"id": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"amount": {
"type": "string",
"description": "nonnegative decimal, <=9 fractional digits"
}
},
"additionalProperties": false
},
"maxItems": 100
},
"invoice_total": {
"type": "string",
"description": "nonnegative decimal, at most minor_unit_digits fractional digits; never rounded"
},
"minor_unit_digits": {
"type": "integer",
"maximum": 6,
"minimum": 0
}
},
"additionalProperties": false
}