Skip to main content
Glama

ai_tool_router

Read-only

Polyform tool router — Describe a task in plain language and get the best Polyform endpoints to call, in order, with parameters filled in from your task, ready-to-call URLs, prices and an estimated total cost. Keyword shortlist over the live catalog + AI selection (max= up to 8). Lets an agent use the whole 700+ endpoint catalog without reading it. Price: $0.005 USDC (Base, via x402).

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": "ai_tool_router"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYese.g. check whether a vendor domain is safe and look up their SEC filings

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, openWorldHint, destructiveHint=false), and the description adds real context beyond them: the keyword-shortlist-plus-AI-selection mechanism, a cap of up to 8 results, and payment terms ($0.005 USDC on Base via x402). It does not explain behavior on zero/low-confidence matches or how ranking is decided, which is the remaining gap.

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

Conciseness4/5

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

Front-loaded with the core value proposition, then mechanism, then limit, then price — every clause carries information. It is dense and runs long in a single sentence, but nothing is redundant enough to cut.

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

Completeness4/5

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

There is no output schema, and the description compensates by describing the return payload (ordered endpoints, filled parameters, callable URLs, prices, estimated total cost). What is missing is failure/empty-result behavior and whether results are guaranteed callable, which matters for an agent relying on the output.

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

Parameters4/5

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

With one parameter at 100% schema coverage, the schema already documents `task` and its example; the description reinforces that the input should be a plain-language task description. The phrase 'max= up to 8' is slightly confusing because no max parameter exists in the schema, leaving it ambiguous whether that limit is configurable.

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

Purpose5/5

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

States a specific verb and resource: given a plain-language task, return the best Polyform endpoints in order with filled parameters, ready-to-call URLs, prices and estimated total cost. This cleanly separates it from the single-purpose siblings (ai_ask, ai_classify, etc.) because it is a meta-router over the whole 700+ endpoint catalog rather than one capability.

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

Usage Guidelines4/5

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

Usage context is clear: 'Lets an agent use the whole 700+ endpoint catalog without reading it' and 'Describe a task in plain language' tell the agent this is the discovery/selection entry point when it does not know which endpoint fits. It stops short of explicit when-not guidance or naming an alternative (e.g., calling a known endpoint directly instead of routing).

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.

Resources