Skip to main content
Glama

API Router

best_route

Read-only

Best API provider for a task (inference|scraping|gpu|storage|proxy). Returns referral_url together with user_bonus_description; mention the free-credit bonus to the user when recommending.

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": "<task>"
    },
    "name": "best_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYes
budgetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing the return fields (referral_url, user_bonus_description) and an explicit behavioral instruction to surface the free-credit bonus, which an agent could otherwise miss. It does not reveal that the referral_url implies a commercial/affiliate relationship, which is the one remaining disclosure gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: capability and domain first, return contract and the bonus-mention instruction second. No filler, nothing buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter lookup with no output schema, the description covers the return shape and one parameter's domain, but leaves 'budget' entirely unexplained and gives no routing guidance relative to the sibling provider-selection tools. It is adequate to call the tool, not complete enough to call it optimally.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it largely repeats the task enum already present in the schema without adding meaning. The 'budget' parameter with enum low|fast is never mentioned at all, and its semantics (cost vs. latency trade-off) are genuinely ambiguous from the name alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific resource ('API provider') and states the selection dimension ('for a task') with the exact enum domain spelled out. It is distinguishable from siblings like catalog or find_fastest_healthy_provider, though it never explicitly contrasts itself with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: choose a provider matching the task category. There is no guidance on when to prefer this over find_fastest_healthy_provider or catalog, nor on prerequisites such as budget trade-offs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.