firewall_before_payment
Paid automatic before-payment gate for x402 clients. Call after receiving the merchant's real PAYMENT-REQUIRED challenge but before creating/signing the merchant payment. Returns firewall_action ALLOW, REVIEW or BLOCK plus signed proof. ALLOW means the wallet/client may proceed only if its own spending authority also permits the payment. Machine price: $0.001 via x402.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payment_required": "<payment_required>",
"request": "<request>"
},
"name": "firewall_before_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | ||
| category | No | Optional purchase/service category for audit context. | |
| merchant_id | No | Optional stable merchant identifier; defaults to the resource hostname. | |
| payment_required | Yes | Merchant's real x402 PAYMENT-REQUIRED payload, decoded or encoded. |