check_context_cliff
Check one LLM request's token counts against a pricing snapshot and return a deterministic decision: allow, pre-cliff warning, hard-cliff reroute, or budget-gate block, with estimated costs and a cheaper fallback model where one exists. Estimates only, not billing. Receives model name and token counts only, never prompt content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID from list_supported_models (gpt-6-1-sol, claude-haiku-5-5, claude-sonnet-5-5, claude-opus-5-5, gpt-6-luna) | |
| pass_rate | No | ||
| request_id | No | Optional trace ID (1..64 alphanumeric/underscore/hyphen chars). | |
| retry_rate | No | ||
| prompt_tokens | Yes | ||
| cache_hit_rate | No | ||
| budget_gate_usd | No | ||
| allow_async_batch | No | ||
| completion_tokens | Yes | ||
| routed_cache_hit_rate | No | ||
| cold_start_cache_write | No |