Route a task to the right tools (ToolRoute)
route_toolsWhich of my tools does this task need? Send "set_id" (from register_tools) or "tools", plus "query" (the task). Returns a ranked shortlist (adaptive 3-12 tools, or "k"), confidence (high/medium/low/none), matched terms, token savings and the definitions ready to inject ("format": mcp, openai, anthropic, gemini or names). BM25 keyword ranking, no LLM. Free: 200 calls/day per IP, then $0.001 per call via x402 or credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Fixed shortlist size (default adaptive) | |
| max_k | No | Upper bound for the adaptive size (default 12) | |
| query | Yes | The task or user request to route, e.g. "check if this wallet is sanctioned". | |
| tools | No | Tool definitions (MCP, OpenAI, Anthropic, Gemini or Bedrock form), max 500. For route: only if you have no set_id (the set is registered on the fly). | |
| format | No | Definition format (default mcp; names = names only) | |
| set_id | No | set_id ("ts_..." from register, or a ToolFit pin). |