Skip to main content
Glama

agent_recommend

Which x402 API should the agent call for this task? A ranked, compact recommendation with rationale and price, so an agent spends once instead of probing five endpoints. Price $0.02 USDC, charged from your prepaid credits. A key is required: without one the call is refused, because the upstream purchase is real.

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": {
      "need": "<need>"
    },
    "name": "agent_recommend"
  }
}

Input Schema

NameRequiredDescriptionDefault
needYesWhat the agent needs to do

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so well: it discloses the $0.02 USDC cost drawn from prepaid credits, that an API key is mandatory, and that calls without one are refused because the upstream purchase is real. These are exactly the cost, auth, and failure-mode facts an agent needs before invoking a paid tool.

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?

Three tight sentences that front-load the core question, then the value proposition, then the cost/auth constraints. Nothing is redundant, though the pricing and key requirement could be compressed into one sentence.

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?

For a single-parameter, no-output-schema tool, the description covers what it returns (ranked recommendation with rationale and price) plus the commercial and auth preconditions. It stops short of explaining behavior when no API matches or how ranking is determined, which would round it out fully.

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?

There is one required parameter ('need') and schema coverage is 100%, so the schema already documents it fully. The description only restates it as 'for this task', adding no format, length, or phrasing guidance beyond the schema — baseline 3 applies.

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 states a specific resource and output: a ranked recommendation of which x402 API to call, with rationale and price. It is clearly a meta-selection tool, which separates it from data-fetching siblings like token_price or market_open, though the verb is framed as a question rather than an imperative.

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?

It gives a clear usage context — use this when the agent needs to pick an endpoint so it 'spends once instead of probing five endpoints'. No explicit when-not conditions or named alternatives are given, but the selection scenario is unambiguous.

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