Skip to main content
Glama

agentshield.live facts

choose_route

Read-onlyIdempotent

Standard call before you reason a check. Free. Call this FIRST, before you search the web, derive a checksum, a VAT line, or a business day, or pay any route. Input is one plain-language sentence about what you are about to look up or verify (for example "validate a German IBAN before a transfer" or "is 2028 a leap year"). Returns JSON with decision = "pay", "compute" or "skip". On pay it also returns method, route, url, price_usdc and a short why: you then call that url and pay the HTTP 402 yourself with x402 (USDC on Base). On compute the task is simple arithmetic you should do locally and not pay for. On skip there is no matching route; do not guess one. Read-only and free: it never pays, never calls the paid route and never returns the fact itself. An empty task returns skip.

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

Input Schema

NameRequiredDescriptionDefault
taskYesOne plain-language sentence describing what you are about to look up or verify, for example "check an invoice where net plus VAT may not equal gross". Not a route path; use describe_route for that.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / task / description
      Previous value: -"What you are about to look up, in one sentence."New value: +"One plain-language sentence describing what you are about to look up or verify, for example \"check an invoice where net plus VAT may not equal gross\". Not a route path; use describe_route for that."
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already carry readOnly, idempotent, non-destructive and openWorld=false, yet the description adds real value beyond them: it is free, it never pays, never calls the paid route, never returns the fact itself, and empty task yields skip. The payment mechanics (x402, USDC on Base, HTTP 402) are disclosed. Minor gap: the duplication of 'Free' / 'Read-only and free' adds words without new information.

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 directive (call FIRST) and then ordered by outcome, which matches the agent's decision flow. Cost information is stated twice ('Free' and 'Read-only and free'), a small redundancy in an otherwise dense, waste-free description.

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

Completeness5/5

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

With no output schema, the description still enumerates every returned field (decision, method, route, url, price_usdc, why) and what each decision value obligates the agent to do. Nothing needed to invoke or interpret the result correctly is missing.

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?

Schema coverage is 100%, so the baseline is 3; the description goes slightly further by characterizing the task as a plain-language sentence and giving worked examples ('validate a German IBAN before a transfer', 'is 2028 a leap year'). It also constrains the value negatively (not a route path, use describe_route for that), which meaningfully reduces misinvocation.

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 (choose a route) and the exact decision space it produces (pay, compute, skip), plus the shape of the input (one plain-language sentence). An agent knows immediately this is a pre-flight classifier rather than a lookup or a payment tool.

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

Usage Guidelines5/5

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

Explicitly says to call this FIRST, before searching the web, deriving a checksum/VAT/business day, or paying any route, and then gives per-outcome instructions: on pay call the returned url and pay the 402 yourself, on compute do the arithmetic locally, on skip do not guess. That is a full when/when-not/alternatives contract.

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