Spend policy: agent payment rules check, plus a signed audit record
check_spend_policy[Spend policy: agent payment rules check, plus a signed audit record] Check one proposed payment against the buyer's rules (per-tx limit, rolling cap with spent-so-far, categories, allow/deny lists, hours+timezone, assets/chains, human-approval threshold). Returns allow / deny / needs_approval, which rules fired, and a signed audit record (decisionReceipt). Verify free at POST /api/receipt/verify; public key at GET /.well-known/gw8-receipt-key (enabled should be true). Stateless, deterministic; not custody; does not move money. $0.02. Paid: $0.02 USDC on Base, paid in-band via x402 MCP (@x402/mcp; _meta "x402/payment"). Also at POST https://micro-saas-agent.onrender.com/api/spend/check.
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": "<payment>",
"policy": "<policy>"
},
"name": "check_spend_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pass | No | Optional GW8 day pass token (from buy_day_pass / POST /api/pass/day); skips per-call payment | |
| policy | Yes | currency, perTxLimit, rollingCap {limit, spentSoFar, windowHours}, allowedCategories, blockedCategories, allowList, denyList, onUnlisted (deny|needs_approval), allowedHours {start, end, timezone, days}, allowedAssets, allowedChains, requireApprovalAbove | |
| payment | Yes |