# pay_x402

Fetches an HTTP resource; if it replies with the x402 payment-required protocol (protocol v2,

Agent View of the PolicyLayer registry record for `pay_x402`. HTML page: https://policylayer.com/tools/8004swap/pay-x402

## Facts

- Tool: `pay_x402`
- Server: 8004swap (`Stakemate369/8004swap`) — https://policylayer.com/tools/8004swap.md
- Homepage: https://github.com/Stakemate369/8004swap
- Risk category: Financial (Critical risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Approval-gated

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "pay_x402",
    "arguments": {}
  }
}
```

## Why pay_x402 is rated Critical

pay_x402 moves real money, and an autonomous agent will call it with the same confidence it calls a search tool. A misread instruction or an injected prompt is all it takes to drain an account or blow a budget.

## Use case

AI agents use pay_x402 to commit financial operations through 8004swap, usually the final step of a payment, billing, or trading workflow. A call moves real money.

## Recommended policy (PolicyLayer)

Verdict: **Approval-gated**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches 8004swap:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "pay_x402": {
      "deny_if": [
        {
          "conditions": [],
          "on_deny": "Requires human approval."
        }
      ]
    }
  }
}
```

## Other tools on 8004swap (4)

- `check_agent_status` — Read — https://policylayer.com/tools/8004swap/check-agent-status.md
- `fill_quote` — Write — https://policylayer.com/tools/8004swap/fill-quote.md
- `register_agent` — Write — https://policylayer.com/tools/8004swap/register-agent.md
- `request_quote` — Write — https://policylayer.com/tools/8004swap/request-quote.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=8004swap · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/8004swap
