{"uid":"cap_VzxkKtuHuA0cHpSbI0Csx","slug":"x402-agent-payment-policy-compiler-08dc795a","name":"x402 Agent Payment Policy Compiler","description":"","url":"https://gpt55.558686.xyz/v1/tools/x402-agent-payment-policy-compiler?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"expected_asset":{"type":"string","maxLength":120},"denied_services":{"type":"string","maxLength":10000},"expected_pay_to":{"type":"string","maxLength":80},"allowed_services":{"type":"string","maxLength":10000},"expected_network":{"type":"string","maxLength":80},"daily_budget_usdc":{"type":"number","maximum":10000,"minimum":0.0001},"max_usdc_per_call":{"type":"number","maximum":100,"minimum":0.0001},"hourly_budget_usdc":{"type":"number","maximum":10000,"minimum":0.0001},"allow_automatic_repurchase":{"type":"boolean"},"consecutive_failures_before_pause":{"type":"integer","maximum":10,"minimum":1}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"tool":{"type":"string"},"fetchedAt":{"type":"string"}},"additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-04IB9ISyASzRFcZwJOuF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compiles agent spending rules into a structured buyer-owned payment policy with spend caps, service allowlists, MCP/Flowise guard configs, x402 prepay checklists, denial examples, and audit log schema.","exampleAgentPrompt":"Compile a buyer-owned x402 payment policy for my agent: daily budget of $5 USDC, max $0.05 per call, hourly budget $1 USDC, allow only api.openai.com and gpt55.558686.xyz, deny everything else, expect payment to 0xABC...123 on Base mainnet in USDC, no automatic repurchase, pause after 3 consecutive failures — and include MCP guard config, Flowise guard config, x402 prepay checklist, denial examples, and audit log schema.","exampleUseCases":null,"resultDescription":"A deterministic structured payment policy document including: spend caps (per-call, hourly, daily), service allowlist and denylist, expected payTo address and network checks, expected asset validation, MCP guard configuration, Flowise guard configuration, x402 prepay checklist, example denial scenarios, and an audit log schema — all scoped to the buyer's agent.","failureModes":["Input exceeds 700000 characters — request rejected","daily_budget_usdc or max_usdc_per_call out of allowed range — validation error","Missing required fields result in incomplete policy sections","Payment not received via x402 USDC on Base — 402 response before processing","consecutive_failures_before_pause outside 1-10 range — schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, structured payment policy for an AI agent using x402/USDC payments on Base — especially when you want MCP or Flowise guard integration, spend caps, service allowlists, and audit log schemas generated without calling an upstream LLM. Ideal for developers building autonomous agent wallets or payment guardrails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T00:44:50.453Z","isFirstParty":false,"canonicalSlug":"x402-agent-payment-policy-compiler-08dc795a"}