tinplate_x402_spend_guard
Inspect x402 HTTP 402 payment challenges and agent spend budgets offline in volatile RAM for over-cap quotes, unknown assets, testnets, unlisted recipients, resource SSRF, and velocity anomalies. (Endpoint: POST /v1/x402-spend-guard)
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>"
},
"name": "tinplate_x402_spend_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | Caller spend, network, asset, recipient, and timeout policy. | |
| recent_payments | No | Optional recent payment log entries to detect rapid drain loops or replayed nonces offline. | |
| payment_required | Yes | x402 v1/v2 402 JSON body or Base64-encoded PAYMENT-REQUIRED header value to inspect before signing a payment authorization. |