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

Agent Tools (x402 + MCP + A2A directory)

Official

Quote a paid verification

prepare_paid_verification

Prepare a sponsored paid verification quote for an x402 service so you can sign the EIP-712 typed data and execute payment from your wallet before expiry.

Instructions

Quote a sponsored paid verification of an x402 service.

You pay the service once from your own wallet (Base USDC, <= $1; funds go to its payTo). Sign the returned typed_data (EIP-712), then call execute_paid_verification before valid_before. Never signs or pays for you.

Args: slug: Service slug from search / get. payer: 0x address of the paying wallet. api_key: Optional; defaults to AGENT_TOOLS_API_KEY.

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": {
      "slug": "<slug>",
      "payer": "<payer>"
    },
    "name": "prepare_paid_verification"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
payerYes
api_keyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (which only say non-read-only, open-world, non-idempotent), the description discloses what the operation actually costs and touches: Base USDC, a $1 ceiling, funds routed to the service's payTo, and an EIP-712 signature the caller must produce. It also states the expiry window (`valid_before`) and explicitly disclaims that the tool will sign or pay on the agent's behalf — exactly the behavioral facts an agent needs before committing funds.

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?

The prose is front-loaded with the operation and the payment semantics, then uses a compact Args block for parameters — no filler sentences. Minor friction from line-wrapping mid-sentence and a slightly ambiguous pairing of "You pay the service once" with "Never signs or pays for you", which a reader has to reconcile as user-pays/tool-doesn't.

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 three-parameter, non-idempotent, open-world quoting tool, the definition covers cost, currency, network, signature scheme, expiry, follow-up call, and caller identity. An output schema exists, yet the description still names the key returned fields (`typed_data`, `valid_before`) that gate the next step, so nothing essential is missing.

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%, so the description carries the full burden, and it does: `slug` is tied to its source tools (`search` / `get`), `payer` is identified as the 0x address of the paying wallet, and `api_key` is marked optional with its default (AGENT_TOOLS_API_KEY). Every parameter gains meaning that the bare schema does not provide.

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?

The description pairs a specific verb with a specific resource ("Quote a sponsored paid verification of an x402 service") and immediately positions it in the workflow by naming the companion step `execute_paid_verification`. The clause "Never signs or pays for you" cleanly separates it from the execute sibling, so an agent can pick between the two without opening either schema.

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 lays out an explicit ordering: pay the service once, sign the returned `typed_data`, then call `execute_paid_verification` before `valid_before`. That is clear when-to-use context with a handoff condition. It stops short of stating when not to call it (e.g. reusing an existing quote or refreshing an expired one), leaving a small gap.

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