Skip to main content
Glama

Beggar Bot

x402_auth_payload

Build an unsigned EIP-3009 TransferWithAuthorization for an x402 payment: reads the token's live EIP-712 name/version, converts USDC amount to units, sets validAfter/validBefore window and a random 32 Paid: $0.02 USDC via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_auth_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo0x pay_to
fromNo0x payer
chainNobase|...
tokenNo0x or usdc
amountNoUSDC decimal
valid_secondsNodefault 300

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description does useful work: it discloses the output is unsigned, that it reads the token's live EIP-712 name/version on chain, and that it sets a validity window and random nonce. It stops short of covering failure modes (unknown token, missing RPC), chain defaults, or that the result is a payload meant to be signed separately.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single run-on sentence whose tail is garbled or truncated ('a random 32 Paid: $0.02 USDC via x402'), and a price string leaks into the middle of the behavior description. The core verb is front-loaded, but the structure does not hold together.

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

Completeness2/5

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

For a six-parameter, annotation-free, output-schema-free builder tool, the description leaves important things unspecified: the shape of the returned payload, how omitted chain/token/from values are defaulted, and what errors to expect. The truncated ending further undermines completeness.

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 coverage is 100%, so the baseline is 3. The description adds some meaning beyond the schema by explaining that amount is a USDC decimal converted to token units, which justifies the mid-range score.

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?

States a specific verb and resource: 'Build an unsigned EIP-3009 TransferWithAuthorization for an x402 payment'. That clearly separates the build step from verification-style siblings such as x402_auth_verify, even though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance. It never states prerequisites (RPC access to read EIP-712 metadata, a funded payer) or that verification should follow via x402_auth_verify, so the agent must infer the workflow.

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.