Skip to main content
Glama

Submit x402 payment

submit_x402_payment

Pay an x402_testnet order with a base64 X-PAYMENT value (testnet only). Requires scope 'orders:write'.

Input Schema

NameRequiredDescriptionDefault
paymentYesThe base64 X-PAYMENT value.
order_idYes
idempotency_keyNoOptional. Same key + same arguments within 24 h returns the original result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already establish the mutation safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false). The description adds useful auth and environment constraints (scope and testnet-only), but does not explain payment failure behavior, reversibility, or result handling.

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?

The description is a single tight sentence with the core action front-loaded and essential constraints parenthetically appended. It contains no redundant or filler text.

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

Completeness3/5

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

For a payment mutation with no output schema, the description covers the key preconditions (scope, testnet) but leaves out what a successful submission returns and how failures are surfaced. The schema does document the idempotency key, so the remaining gap is primarily around outcome expectations.

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 67%, with payment and idempotency_key already well described in the schema. The description only restates that payment is a base64 X-PAYMENT value and adds no semantics for order_id or idempotency beyond what the schema provides.

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 specific verb and resource: paying an x402_testnet order with a base64 X-PAYMENT value. This clearly distinguishes it from order creation/listing siblings, though it does not explicitly name or contrast those alternatives.

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 clear context for use: testnet only and requiring scope 'orders:write'. It does not state when not to use it or name an alternative for mainnet or other payment flows, so it falls short of full when/when-not guidance.

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