Spend-policy check (allow / deny / needs_approval)
check_spend_policy[Spend policy: agent payment risk check] Before an agent pays: check a proposed payment against the buyer's rules (per-tx limit, rolling cap with spent-so-far, merchant categories, allow/deny lists, allowed hours + timezone, assets/chains, human-approval threshold). Returns decision, the rules that fired, every check, and a signed decision receipt. Stateless, deterministic; not custody, does not execute payments. 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.
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 |