ToolRoute
Route each agent task to the few tools it needs (BM25 shortlist). Free tier; x402 or credits.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"toolroute": {
"url": "https://api.youraitools.co/toolroute/mcp"
}
}
}遠端端點
https://api.youraitools.co/toolroute/mcpstreamable-http它能做什麼
工具清單
工具(2)
🟡register_tools(tools, url)
Register a tool list once and get a set_id for route_tools. Pass "tools" (array in MCP, OpenAI, Anthropic, Gemini or Bedrock form, max 500) or "url" (public remote MCP server; its tools are listed, never called). Same tools always get the same set_id; sets are kept 90 days after last use. Free.
輸入結構描述
{
"type": "object",
"properties": {
"tools": {
"type": "array",
"items": {
"type": "object"
},
"description": "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)."
},
"url": {
"type": "string",
"description": "Register: public remote MCP server URL (https). Tools are listed, never called."
}
}
}🟢route_tools(set_id, tools, query, k, max_k, ...)
Which 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.
輸入結構描述
{
"type": "object",
"properties": {
"set_id": {
"type": "string",
"description": "set_id (\"ts_...\" from register, or a ToolFit pin)."
},
"tools": {
"type": "array",
"items": {
"type": "object"
},
"description": "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)."
},
"query": {
"type": "string",
"description": "The task or user request to route, e.g. \"check if this wallet is sanctioned\"."
},
"k": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "Fixed shortlist size (default adaptive)"
},
"max_k": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "Upper bound for the adaptive size (default 12)"
},
"format": {
"type": "string",
"enum": [
"mcp",
"openai",
"anthropic",
"gemini",
"names"
],
"description": "Definition format (default mcp; names = names only)"
}
},
"required": [
"query"
]
}社群
證據