classify_turn
Classify user-request complexity on a 0-2 scale to select the cheapest model tier capable of handling it, returning a tier, reason, and fallback for reliable routing.
Instructions
Classify how complex a user request is on a 0/1/2 scale. Use this when you're orchestrating an agent and want to decide whether to spend on a flagship model (tier 2), a mid-tier model (tier 1), or stay cheap (tier 0). Returns {tier, why, fallback, durationMs}.
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": {
"userMessage": "<userMessage>"
},
"name": "classify_turn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userMessage | Yes | The user's request to classify. Capped at 1500 chars internally. | |
| recentHistory | No | Optional. Last 1-2 assistant turns for context. Each capped at 200 chars internally. |