detect_model_downgrade_and_substitution
Evaluates LLM rate-card tiers to quantify relay downgrade risk, cost ratios, and remaining coding session turns. Deterministic in-memory calculation requiring no API keys; unknown model IDs safely fall back to the flagship baseline without error. Sums burned_usd and remaining_usd into the total session pool and projects remaining turns against a $137.45 reference budget, returning cost ratios, an endurance matrix, and a recommended production model ID. Use this tool when comparing session burn rates or suspected relay throttling; use reconcile_usage_receipt for single invoice lines, check_context_cliff for prompt-length surcharges, or optimize_prompt_cache_layout for mid-prompt cache breakpoint fixes.
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": "detect_model_downgrade_and_substitution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Canonical provider/model ID to evaluate (e.g. 'openai/gpt-6-astra' or 'openai/gpt-6.1-sol'). | openai/gpt-6-astra |
| burned_usd | No | Cumulative USD quota spent in the current coding session. | |
| remaining_usd | No | Remaining USD quota balance; combined with burned_usd to derive initial pool size. |