route.classify
Classify a freeform request into the right mode (research, news, finance, astrology, …) before spending a run. Never charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "route.classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The freeform request to classify, e.g. 'compare the best espresso grinders under $300'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | The chosen mode id — pass it to runs.launch. | |
| fields | No | Fields the router extracted from the prompt (mode-specific). | |
| from_llm | No | True when the LLM router answered, false for the offline heuristic. | |
| rationale | No | Why this mode was picked. | |
| alternates | No | Other plausible modes, best first. | |
| confidence | Yes | Router confidence, 0–1. |