Skip to main content
Glama
arispay-inc

@arispay/payagent-mcp

Official

pay

DestructiveIdempotent

Executes x402 machine transactions: sends an HTTP request, settles required USDC on supported chains after a 402, retries, and returns the response with a receipt. Use a unique idempotency key.

Instructions

SPENDS REAL MONEY — on-chain and irreversible. The complete machine payment path: makes the HTTP request, and if the server answers 402, selects the supported asset/network variant (USDC on Base/Ethereum/Polygon; delegated mode also settles Solana and BNB Chain variants), validates policy, pays, retries the request, and returns the response plus a structured machine-readable receipt. Requires an idempotencyKey: re-calling with a key that already paid returns the cached receipt and does NOT pay again. Mode selection: PAYAGENT_PRIVATE_KEY set → signs locally (self-custody; wallet balance is the only cap); otherwise pays through the stored ArisPay agent whose per-tx/daily/monthly mandate is enforced server-side BEFORE signing. Use inspect first to see the price. Do not use for ordinary unpaid HTTP requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe full URL of the API endpoint to call.
bodyNo
agentNoOptional name of a stored x402 payer agent (delegated mode).
methodNoGET
headersNo
idempotencyKeyYesCaller-chosen unique key for this payment intent (min 8 chars, e.g. a UUID). Re-calling with a key that already paid returns the cached receipt WITHOUT paying again — except a delegated payment the seller settled but did not deliver: re-calling within 9 minutes re-sends the SAME payment so the seller can re-serve it. Use a fresh key for each new payment intent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.2.0
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Caller-chosen unique key for this payment intent (min 8 chars, e.g. a UUID). Re-calling with a key that already paid returns the cached receipt WITHOUT paying again. Use a fresh key for each new payment intent."New value: +"Caller-chosen unique key for this payment intent (min 8 chars, e.g. a UUID). Re-calling with a key that already paid returns the cached receipt WITHOUT paying again — except a delegated payment the seller settled but did not deliver: re-calling within 9 minutes re-sends the SAME payment so the seller can re-serve it. Use a fresh key for each new payment intent."
  2. Addedv4.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it warns the action spends real money irreversibly, explains idempotency caching (re-calling a paid key returns the cached receipt without paying), and discloses the 9-minute resend carve-out for delegated settlements the seller failed to deliver. It also explains where the spending cap comes from in each mode, and that mandates are enforced server-side before 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?

The money risk is front-loaded in the first clause, followed by the flow, then mode selection, then the routing advice and exclusion. Dense but nearly every sentence carries operational weight; the parenthetical asset/network list is the only mildly expendable detail.

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?

No output schema exists, and the description does cover the return ('response plus a structured machine-readable receipt'), the auth/prerequisite (private key or stored agent), and idempotency behavior. It stops short of describing what the receipt contains or what happens on policy rejection or payment failure, which for a destructive money-moving tool would be worth one more clause.

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 50%: idempotencyKey and agent are richly documented in the schema, but body, method, and headers have no descriptions anywhere. The description adds the delegated-mode meaning of `agent` and reinforces idempotency semantics, but says nothing about how body/method/headers are forwarded to the target endpoint, so it only partially compensates.

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 ('makes the HTTP request... if the server answers 402... pays, retries'), and names the exact mechanism (x402 payment flow) rather than restating the tool name. It is immediately distinguishable from siblings like inspect and balance, which do not move funds.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit prerequisite workflow ('Use inspect first to see the price') and an explicit exclusion ('Do not use for ordinary unpaid HTTP requests'). It also documents the mode-selection rule (PAYAGENT_PRIVATE_KEY set vs. stored ArisPay agent) that determines which code path runs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.