Debug Endpoint
The debug endpoint runs the routing classifier on a prompt and returns the full decision - without making any provider call or consuming any credits. Use it to understand why a prompt was routed to a particular tier, or to verify that your tier floor and ceiling settings are working as expected. Endpoint:Request
| Field | Required | Description |
|---|---|---|
prompt | Yes | The user message to classify |
system_prompt | No | System prompt - affects context length estimate |
max_output_tokens | No | Expected output length - affects cost estimate |
tools | No | Tool definitions - used to detect the tool-calling scenario and rerank models by function-calling accuracy |
messages | No | Full conversation. Defaults to a single user message built from prompt. Used for history-floor detection and tool-scenario classification |
profile | No | Routing profile: auto (default) |
Response
Response Fields
All fields are nested under adecision object.
| Field | Description |
|---|---|
tier | Assigned tier: NANO, SIMPLE, LIGHT, STANDARD, or COMPLEX |
confidence | How confident the classifier is, from 0 to 1 |
model | The model that would be selected for this request |
category | Detected task category (e.g. math, coding_general_debugging_refactoring_testing, simple_qa) |
method | How the tier was decided: rules (rule-based classifier) |
reasoning | Human-readable explanation of the decision, including score, signals, and any applied overrides |
costEstimate | Estimated cost in USD for this request on the selected model (including the routing markup) |
baselineCost | What this would cost on the baseline model (Claude Opus 4.8) |
savings | Fraction saved vs baseline, from 0 to 1 |
filteredChain | Ordered list of models that would be tried - primary first, fallbacks after |
profile | Routing profile used: auto, tier, or direct |
historyFloor | Tier floor applied from conversation history, if any (null when not applicable) |
toolScenario | Detected tool-calling scenario (single, parallel, multi_turn, web_search, memory, optional), or null when no tools are present |
bfclScore | The selected model’s BFCL score for the detected tool scenario, or null |
Example: Debugging a Misclassification
If a prompt is routing to an unexpected tier, call the debug endpoint to inspect the decision:routor_tier_floor on the request or save a Routing Profile with the right constraints.