route_best_model
Recommends the best AI provider for a given task type by scoring providers on capability match, free-tier preference, and known strengths. Accepts optional constraints to refine routing.
Instructions
Recommend the best AI provider for a given task type.
Uses the public kbarbel640-del/ai-provider-registry to score providers
by capability match, free-tier preference, and known provider strengths.
Args:
task_type: Task category — chat, code, reasoning, vision,
search, embeddings, image, or tools.
constraints: Optional routing constraints:
- prefer_free (bool): Prefer free-tier providers.
- exclude_providers (list[str]): Provider ids to skip.
- api_style (str): Required API style (e.g. openai).
Returns: JSON string with top recommendation and up to four alternatives.
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": {
"task_type": "<task_type>"
},
"name": "route_best_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_type | Yes | ||
| constraints | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |