Payment decision: may this agent pay, plus a signed audit record
should_i_pay[Payment decision: may this agent pay, plus a signed audit record] May this agent pay this seller, under the buyer's rules? One call runs the spend-policy check and the x402 seller reputation check and returns one verdict (pay / dont_pay / ask_human), the reasons, both sub-results, and a signed audit record (Ed25519 decisionReceipt plus X-GW8-Receipt / X-GW8-Receipt-Signature). Verify free at POST /api/receipt/verify; public key at GET /.well-known/gw8-receipt-key (enabled should be true). Deterministic; stateless; never pays anyone. Free when the seller data source is down. $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/pay/should-i-pay.
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>",
"seller": "<seller>"
},
"name": "should_i_pay"
}
}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 | |
| seller | Yes | ||
| payment | Yes | ||
| sellerRules | No |