clearance_x402_ap2
Paid transaction-clearance decision for an autonomous x402 purchase. Use after create_ap2_challenge and after receiving the merchant's real PAYMENT-REQUIRED challenge, but before paying the merchant. Verifies AP2 v0.2 authority, exact request/challenge integrity, and public merchant-risk evidence. Returns clearance_decision APPROVED, REVIEW or DENIED and a signed clearance_token. APPROVED may proceed automatically; REVIEW should not auto-pay; DENIED should not pay. 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>",
"merchant_id": "<merchant_id>",
"category": "<category>",
"payer": "<payer>",
"request": "<request>",
"ap2_authority": "<ap2_authority>"
},
"name": "clearance_x402_ap2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | No | ||
| payer | Yes | Base payer wallet address that would pay the merchant. | |
| request | Yes | Exact HTTP request the agent intends to execute if clearance permits it. | |
| category | Yes | Service/purchase category for the transaction. | |
| merchant_id | Yes | Stable merchant identifier covered by the AP2 authority. | |
| ap2_authority | Yes | ||
| payment_required | Yes | Merchant's real x402 PAYMENT-REQUIRED payload, decoded or encoded. |