reconcile_usage_receipt
Audits a single API usage receipt against official 1x manufacturer rate cards from the 563-entity UMCE registry to quantify relay multiplier markups and unutilized prefix cache waste. Deterministic mathematical audit in memory requiring no authentication. Returns JSON with expected_theoretical_cost_usd, billing_variance_usd, variance_status ('OVERCHARGED_BY_RELAY_OR_MARKUP' when variance > $0.001 else 'EXACT_RATE_CARD_MATCH'), same_model_unutilized_cache_waste_usd, and net_recoverable_savings_usd. Enforces cached_tokens <= prompt_tokens, pricing (prompt_tokens - cached_tokens) at uncached input rates and cached_tokens at warm cache rates before comparing against actual_billed_usd. Use this tool when verifying an invoice line item; use detect_model_downgrade_and_substitution instead for session-level budget endurance projections.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "reconcile_usage_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Billed model ID in 'vendor/model-slug' format (e.g. 'openai/gpt-4o-2024-11-20' or 'openai/gpt-6.1-sol'). | openai/gpt-4o-2024-11-20 |
| cached_tokens | No | Subset of prompt_tokens billed at warm cache read rate (0 <= cached_tokens <= prompt_tokens). | |
| prompt_tokens | No | Total input prompt tokens billed (must be >= cached_tokens). | |
| actual_billed_usd | No | Actual USD amount deducted on the provider or relay invoice. | |
| completion_tokens | No | Output completion tokens billed. |