Skip to main content
Glama

Route a task to the best live endpoint

route_task
Read-only

Describe what you need; get the best payable x402 endpoint plus fallbacks, each re-challenged live seconds ago, with payment requirements and exact call instructions. Optionally validates your input against each candidate's schema.

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

Input Schema

NameRequiredDescriptionDefault
taskYes
assetNo
inputNo
limitNo
max_usdNo
networkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds real behavioral detail: candidates were 're-challenged live seconds ago' (freshness/liveness probing), results include payment requirements and exact call instructions, and input validation against candidate schemas is optional. It does not clarify whether probing incurs cost or how failures are reported, keeping it below a 5.

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?

Two compact sentences that front-load the core outcome and then the optional validation behavior. Dense with jargon ('x402', 're-challenged') but every clause carries information; nothing is redundant.

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 six-parameter tool with a nested object, zero schema coverage, and no output schema, the description does convey the return shape (ranked endpoints, fallbacks, payment requirements, call instructions). However, it leaves half the input parameters unexplained and says nothing about how liveness failures or empty results are surfaced.

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

Parameters3/5

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

Schema description coverage is 0% across six parameters, so the description must compensate. It effectively explains 'task' ('Describe what you need') and 'input' (validated against each candidate's schema), and 'max_usd' is hinted at by 'best payable'. But 'asset', 'network', and 'limit' receive no meaning at all.

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?

The description names a specific outcome: given a natural-language task, return the best payable x402 endpoint plus fallbacks with payment requirements and call instructions. That is more than a restatement of 'route_task'. It stops short of distinguishing itself from close siblings such as search_ranked or search_catalog, so an agent must infer the difference.

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 implied by 'Describe what you need' and by the payable-endpoint framing, which suggests use when you need a live, callable endpoint. No explicit when-not conditions or named alternatives are given, so the agent gets context but no routing guidance against the many sibling search/validate tools.

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