Skip to main content
Glama

A2A Gateway — Base Token Guard & x402 Settlement

generate_a2a_invitation

Register an existing wallet you control. All arguments are optional: with a valid wallet_address, nonce, expires_at, EIP-191 signature and pow_counter it returns a referral code and SVG; if the wallet is missing or invalid, or any signature field is missing, it falls back to register_a2a_agent and returns a server-generated wallet with 2 free points (the response has registration_mode='agent'). Example signed call: {"wallet_address":"0xabc...40hex","nonce":"<64 lowercase hex>","expires_at":1790000000,"signature":"0x...","pow_counter":"12345"}. Optional inviter_code binds a referral.

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

Input Schema

NameRequiredDescriptionDefault
nonceNo
chain_idNo
signatureNo
expires_atNoUnix seconds, at most 300 seconds in the future
pow_counterNo
inviter_codeNo
wallet_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / required
      Removed value: -[
      -  "wallet_address",
      -  "nonce",
      -  "expires_at",
      -  "signature",
      -  "pow_counter"
      -]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full load and does well: it discloses the silent fallback to a different tool, the side effect of provisioning a server-generated wallet with 2 free points, and the registration_mode='agent' marker in the response. It omits idempotency/retry behavior, whether the fallback wallet is persisted across calls, and any rate limits on proof-of-work or signing.

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 primary behavior, then the fallback condition, then a compact example — no filler sentences. The conditional clause listing five field names is dense and slightly run-on, but every element is load-bearing for a caller assembling a signed request.

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 7-parameter, annotation-free tool with no output schema, the definition covers both return shapes (referral code + SVG, or wallet + 2 free points + registration_mode) and the failure path, which is what an agent needs to act. The one real hole is chain_id, which is never mentioned despite defaulting to 8453, leaving the agent unaware the invitation is chain-scoped.

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 only 14% across 7 parameters, and the description compensates by naming six of them and adding meaning the schema cannot express — that the signature must be EIP-191 and that inviter_code binds a referral. The worked example pins down the exact wire shape of a signed call, which is far more than the pattern constraints alone convey.

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 concrete outcome — registering a wallet you control and returning a referral code plus SVG — and names the sibling (register_a2a_agent) it degrades into when inputs are bad. The headline verb 'Register' sits slightly at odds with the tool name 'generate_a2a_invitation', so an agent must read the whole paragraph to know the primary product is an invitation/referral artifact, but the two branches are unambiguous once read.

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 the explicit selection condition for each branch: valid wallet_address + nonce + expires_at + EIP-191 signature + pow_counter yields a referral code, while a missing/invalid wallet or missing signature field routes to register_a2a_agent. It does not say when an agent should call this versus going straight to register_a2a_agent or get_a2a_registration_protocol, so the caller must infer the preference.

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