Skip to main content
Glama

webaz_pay_order

Destructive

Pays a Direct Pay order (order_id) or checkout group (group_id) in USDC via x402 (api_key or OAuth payment:relay; see payment.x402 / checkout_group.pay_with in the order read). Without a payment: isError, structuredContent = x402 v2 PaymentRequired + wallet_request (wallet args, e.g. PayBox pay_x402). With the signed payment in payment (e.g. PayBox x_payment) or _meta["x402/payment"]: submits it. Does not sign. Needs the owner's one-time consent on webaz.xyz (Me page, Passkey). X402_SETTLEMENT_PENDING: still settling; the same payment can be resent unchanged.

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

Input Schema

NameRequiredDescriptionDefault
api_keyNo
paymentNoPaymentPayload: base64 (PAYMENT-SIGNATURE, PayBox x_payment) or JSON
group_idNo
order_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / payment / description
      Previous value: -"base64 PaymentPayload (PAYMENT-SIGNATURE value)"New value: +"PaymentPayload: base64 (PAYMENT-SIGNATURE, PayBox x_payment) or JSON"
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true), the description discloses that real USDC moves, that the tool never signs, the exact auth options (api_key or OAuth scope payment:relay), the out-of-band consent requirement, and the shape of the non-error response (x402 v2 PaymentRequired + wallet_request). It also documents the settlement-pending state and that resending is safe. That is unusually rich behavioural context for a mutation tool.

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?

Dense but front-loaded: the operation comes first, then the response contract, then the submission path, then the caveats. A few references are terse to the point of opacity ('see payment.x402 / checkout_group.pay_with in the order read'), but no sentence is padding.

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 destructive, money-moving tool with no output schema and sparse schema descriptions, the description covers the challenge/response cycle, auth, consent, and the pending-settlement edge case well. Remaining gaps are the success return shape and the order_id-vs-group_id exclusivity rule, which matter for correct invocation.

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 description coverage is only 25% (only `payment` is documented), so the description must compensate, and it largely does: it explains that `payment` carries a PaymentPayload (PayBox x_payment or _meta["x402/payment"]), that `api_key` is an alternative to OAuth, and that order_id and group_id select the two different target resources. It does not state that order_id/group_id are mutually exclusive or that at least one must be supplied, which is a real gap given zero required parameters.

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 verb and resource ('Pays a Direct Pay order (order_id) or checkout group (group_id) in USDC via x402'), so the agent knows exactly what is being transacted and over which identifier. It also distinguishes itself functionally from signing tools by saying 'Does not sign', though it never names sibling tools such as webaz_request_x402_payment or webaz_prepare_case that an agent might otherwise confuse it with.

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 two-phase usage pattern is explicit: call without `payment:` to obtain a PaymentRequired challenge plus wallet_request, then call again with the signed payment to submit it. Preconditions (owner's one-time consent on webaz.xyz via Passkey) and the X402_SETTLEMENT_PENDING retry rule ('the same payment can be resent unchanged') are also given. What is missing is explicit routing against sibling tools for the setup half of the flow.

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