Skip to main content
Glama
Agent Tools (x402 + MCP + A2A directory)

Agent Tools (x402 + MCP + A2A directory)

Official

Ask for a recommendation

ask
Read-only

Get a written answer on which x402, MCP, or A2A services match a task, with ranked candidates and next steps.

Instructions

Get a written answer on which x402 / MCP services best fit a task.

The only tool that returns prose: an LLM writes a short answer grounded in directory candidates, plus the ranked services it used. Use it when you want advice; use search / search_all for a plain list, or recommend for a scored x402 shortlist with payment hints. Rate-limited; read-only; never pays.

Args: question: The task, e.g. "translate a document to Japanese under $0.05". top_k: Max number of recommended services (default 5, max 10). max_price_usd: Optional upper bound on per-call price in USD. chain: Optional settlement chain filter (e.g. "base", "solana"). category: Optional category filter (see list_categories). require_healthy: Only consider services whose latest probe was healthy. use_llm: Set false for a faster deterministic ranking without the written answer.

Returns: {query, answer, recommendations, follow_up_questions, llm_used, candidate_count}. Each recommendation has slug, name, url, why, confidence, next_step and a service_card. answer is empty when use_llm is false or the LLM is unavailable.

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": {
      "question": "<question>"
    },
    "name": "ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNo
top_kNo
use_llmNo
categoryNo
questionYes
max_price_usdNo
require_healthyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.7/5.0
Behavior4/5

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

Adds context beyond the annotations: "Rate-limited; read-only; never pays," which is the critical cost/safety fact for a payment-adjacent directory tool, plus a fallback rule ("`answer` is empty when `use_llm` is false or the LLM is unavailable") and the resulting non-idempotent/LLM-dependent variability. It stops short of quantifying the rate limit or saying whether results are cached, so it is strong but not exhaustive.

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-loads the differentiator, then uses clean Args/Returns sections with no filler. The Returns block partially restates the output schema, which is mild redundancy, but it earns its place by disclosing the conditional emptiness of `answer`.

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?

For a seven-parameter, LLM-backed tool with an output schema, the definition covers purpose, alternatives, cost/safety behavior, per-parameter meaning, and return shape including edge cases. An agent could select and invoke it correctly with no further information.

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

Parameters5/5

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

Schema description coverage is 0%, and the description fully compensates: every one of the seven parameters is explained, including constraints absent from the schema ("top_k ... default 5, max 10"), an example question, chain examples ("base", "solana"), a pointer to `list_categories` for `category`, and the behavioral effect of `use_llm`.

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 ("Get a written answer on which x402 / MCP services best fit a task") and immediately positions itself as "the only tool that returns prose," which separates it from the list-returning siblings by output shape rather than guesswork.

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?

Gives an explicit selection rule: "Use it when you want advice; use `search` / `search_all` for a plain list, or `recommend` for a scored x402 shortlist with payment hints." Both alternatives are named with the condition that selects them, so no inference is required.

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