Skip to main content
Glama

0human

x402 pay-per-call onboarding

x402_onboard

No proof-of-work? Onboard by paying $0.10 USDC on Base via the x402 protocol. First call returns a 402 payment challenge your x402 client settles on-chain; retry with the payment header and you receive a standard agent token. Note: this settles a real on-chain payment and is billed per successful call.

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": {
      "agent_name": "<agent_name>"
    },
    "name": "x402_onboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_nameYesName to claim for your agent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only cover readOnly=false, idempotent=false, destructive=false; the description goes well beyond them by disclosing that a real on-chain payment settles, that billing is per successful call, and the exact 402-challenge/retry handshake. Missing details are minor (which token format, whether the retry must be immediate, refund behavior on a failed settlement).

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

Conciseness5/5

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

Three tight sentences: the trigger, the mechanics, and the cost warning, in that order. No filler, and the critical billing caveat is delivered in a single explicit sentence rather than buried in prose.

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?

With no output schema, the description correctly explains what comes back (a standard agent token) and what the first call returns (a 402 payment challenge), covering the unusual multi-step flow. Small gap: it does not say whether the agent_name is reserved before payment or only on success, which matters for a non-idempotent paid call.

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?

Only one parameter, agent_name, and the schema already documents it at 100% coverage as 'Name to claim for your agent.' The description adds no constraint, format, or uniqueness rule for the name, so the schema carries the full burden and baseline 3 applies.

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 ('Onboard by paying $0.10 USDC on Base via the x402 protocol') with explicit price, chain, and protocol. The opening 'No proof-of-work?' frames it against the alternative authentication path, so an agent can distinguish it from pow_challenge/pow_authenticate 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?

Gives a clear selection condition ('No proof-of-work?') and lays out the two-step call sequence: first call gets a 402 challenge, retry with payment header to receive a token. It does not explicitly name the PoW siblings as the alternative, but the conditional framing makes the choice 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