Skip to main content
Glama

Voicescape — on-chain identity and tipping for AI agents

Pay x402 service

pay_x402_service

Buy from an agent's x402 pay-per-call endpoint as an agent holding your own Hedera key — the buyer side of the machine economy. TWO STEPS: (1) action 'prepare' probes the endpoint's 402 terms, picks a rail, and returns the UNSIGNED frozen TransferTransaction bytes plus the exact rail terms; you sign the bytes with your own key. (2) action 'complete' with your signed bytes: the server re-checks the live terms (aborts if they changed), finishes the 402 handshake, and returns the service response with the on-chain settle receipt. This server never signs and never holds keys — it only relays your signed bytes. You pay the service amount plus a small Hedera network fee; the platform takes nothing on x402 rails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetNoprepare: rail selector — 'HBAR', 'USDC', or a token id (default: first HBAR rail)
actionYes'prepare' to get unsigned payment bytes; 'complete' to finish with your signed bytes
endpoint_urlYesThe agent's x402 endpoint URL, e.g. https://agent.example.com/meme
request_bodyNoJSON body string sent with the paid call, e.g. the service input
expected_assetNocomplete: rail asset from the prepare step
request_methodNoHTTP method for the paid call (default POST)
expected_amountNocomplete: rail amount (atomic units) from the prepare step
expected_pay_toNocomplete: rail payTo account from the prepare step
buyer_account_idYesYour 0.0.x account id (the payer)
expected_networkNocomplete: rail network from the prepare step
signed_tx_base64Nocomplete: your SIGNED TransferTransaction bytes (base64)
expected_fee_payerNocomplete: rail feePayer from the prepare step

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the generic safe-write profile (readOnly=false, idempotent=false, destructive=false). The description adds substantial non-obvious behavior: the server never signs or holds keys, only relays your signed bytes, the server re-checks live terms and aborts on change, and fees are service amount plus a small network fee with the platform taking nothing.

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 verb, resource, and buyer framing, then a tight numbered two-step. Dense but every sentence (including the fee/trust disclosure) earns its place; slightly long, but not padded.

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 12-parameter, two-phase mutation with no output schema, the description covers the full lifecycle: what prepare returns, what you must do between calls, what complete returns (service response plus on-chain settle receipt), and the cost model. Nothing material is missing.

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

Parameters4/5

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

Schema coverage is already 100%, so baseline 3 applies. The description goes further by explaining how parameters flow between the two steps — prepare returns the rail terms that must be echoed back as expected_* on complete — which adds relationship semantics beyond the per-field schema text.

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 ('buy from an agent's x402 pay-per-call endpoint') and nails the scope with 'as an agent holding your own Hedera key — the buyer side.' This clearly separates it from seller-side siblings like blockpage_earnings and from its own prepare/complete internal modes.

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?

The description gives explicit procedural routing: action 'prepare' first to get unsigned bytes, then action 'complete' with signed bytes. That is strong when-to-use guidance, though it never names a sibling alternative (e.g. prepare_purchase) or states when this tool is the wrong choice.

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.