llm_reroute
Correct a wrong model routing by redirecting to a better tool and logging the correction to improve future routing decisions.
Instructions
Override the last routing decision and record it for feedback learning.
Logs the correction to the database so future routing decisions for this task type have lowered confidence. Use this when llm_route, llm_query, llm_code, or any other tool chose the wrong model for your task.
Args: to_tool: Which tool to use instead (e.g. "llm_analyze", "llm_code"). reason: Optional explanation — stored for routing quality improvement. original_tool: The tool that made the wrong decision (auto-detected if omitted). original_model: The model that was selected (for logging purposes).
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": {
"to_tool": "<to_tool>"
},
"name": "llm_reroute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| to_tool | Yes | ||
| original_tool | No | ||
| original_model | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |