x402_verify_payment
A financial tool on the X402 Middleware MCP server.
This record as markdown: /tools/com-gadgethumans-swarm-x402-middleware/x402-verify-payment.md
What x402_verify_payment does on X402 Middleware
AI agents use x402_verify_payment to commit financial operations through X402 Middleware, usually the final step of a payment, billing, or trading workflow. A call moves real money.
| Parameter | Type | Required | Description |
|---|---|---|---|
payment_header | string | Yes |
Parameters from the server's own tool schema.
Why x402_verify_payment is rated Critical
The tool name explicitly references payment verification within a payment middleware server built on Stripe. Verifying a payment is a financial operation — it confirms or validates a financial transaction. While the description is empty (reducing confidence), the server context strongly implies this tool interacts with financial transaction state. Under the most-severe-applicable rule, Financial applies.
From the tool's definition Tool name 'x402_verify_payment' combined with server description 'x402 + Stripe payment middleware' and 'The Stripe for the agent economy'
Attacks that exploit this kind of access
The rule that runs x402_verify_payment safely
PolicyLayer is an MCP gateway: it sits between your AI agents and X402 Middleware, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For x402_verify_payment, this is the rule to start with:
Any call to x402_verify_payment is blocked until a human approves it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect X402 Middleware, apply this rule, and every x402_verify_payment call is checked against it from then on.
Questions about x402_verify_payment
x402_verify_payment is a financial tool on the X402 Middleware MCP server. It is categorised as a Financial tool in the X402 Middleware MCP Server, which means it involves financial transactions. Block by default and require explicit approval.
x402_verify_payment accepts 1 parameter: payment_header. Required: payment_header. The full parameter table on this page comes from the server's own tool schema.
Register the X402 Middleware MCP server in PolicyLayer and add a rule for x402_verify_payment: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches X402 Middleware. Nothing to install.
x402_verify_payment is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the x402_verify_payment rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for x402_verify_payment. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
x402_verify_payment is provided by the X402 Middleware MCP server (@gadgethumans/x402). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on X402 Middleware, and thousands of servers like it.
Across the catalogue