Servidor MCP

Usage Bill Reconstructor

com.mcpscores/usage-bill-reconstructor
Finanzas e inversión Público y accesible MCP 2025-11-25

Qué hace este MCP

Recomputes usage-based bills from supplied tariffs and metered usage, optionally checking an invoice total.

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.
Solo lectura Idempotente
Esquema de entrada
{'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}
Añadido
usage_bill_reconstructor
17 de September de 2026 a las 12:36