{"uid":"cap_pbcNoR8yR7Y5xrNE9u1Rc","slug":"spend-gate-agent-wallet-pre-payment-coherence-check-f3dc2388","name":"Spend Gate — Agent Wallet Pre-Payment Coherence Check","description":"Spend Gate — Coherence Gate check before an agent wallet pays an invoice: provider trust and payload safety (real verdicts via the fleet operator lane, $0 upstream toll), price sanity (cap-only) and OmniGate delivery history vote pay/reject; coherence = |Σ w·d| / Σ w, pass needs coherence ≥ 0.6 and a pay-side consensus; Jev reviews only on a pass. Pay 0.005 USDC on Base using the fresh PAYMENT-REQUIRED challenge and caller-authorized PAYMENT-SIGNATURE.","url":"https://mcp-x402.onrender.com/x402/spend-gate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"payee":{"type":"string","description":"Payee domain and/or endpoint URL the wallet is about to pay."},"manifest_url":{"type":"string","description":"Optional npm/PyPI/crates package page URL for the payload_safety path."},"quoted_amount":{"type":"number","description":"Quoted amount in USDC."},"tool_category":{"type":"string","description":"Category of the tool/service being bought (selects the v1 default cap)."},"policy_cap_usdc":{"type":"number","description":"Optional caller policy cap in USDC."}}},"responseSchema":{"example":{"jev":{},"paths":[],"product":"Spend Gate","coherence":1,"consensus":"pay","gate_pass":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zTF3piIUPpHR7PyZV5bwx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a multi-signal coherence gate check before an AI agent wallet pays an invoice, scoring provider trust, payload safety, price sanity, and delivery history to return a pay/reject consensus verdict.","exampleAgentPrompt":"Before paying that 0.05 USDC invoice from api.example.com for a data-enrichment tool, run the Spend Gate coherence check — is the provider trustworthy, is the price sane for the 'data' category, and does it pass the delivery history vote?","exampleUseCases":[{"title":"Pre-payment trust check for unknown API","prompt":"I'm about to pay 0.02 USDC to some-new-provider.com for a search tool — can you run the Spend Gate coherence check on it first to make sure it's trustworthy and the price is reasonable for the 'search' category?"},{"title":"Policy-capped autonomous agent spending","prompt":"My agent wants to pay an invoice of 0.01 USDC to analytics-api.xyz for a data tool — gate it with a 0.05 USDC policy cap and only let it through if Spend Gate says pay."},{"title":"PyPI package payload safety before install-and-pay","prompt":"Before my agent pays 0.005 USDC to deploy the 'requests-ai' package from https://pypi.org/project/requests-ai, run the Spend Gate to check payload safety and provider trust."}],"resultDescription":"Returns a JSON object with a coherence score (0–1, pass threshold ≥ 0.6), a consensus field ('pay' or 'reject'), a gate_pass boolean, an optional Jev review object populated on pass, and a paths array listing which check paths were evaluated.","failureModes":["Low coherence score (< 0.6) results in gate_pass: false and consensus: 'reject' — agent should not pay","Unknown payee domain yields low provider trust signal, likely reject","Quoted amount exceeds policy_cap_usdc or default category cap, returns reject","Manifest URL malformed or unreachable causes payload_safety path to fail or be skipped","Payment challenge expired or signature invalid — x402 payment itself rejected upstream"],"whenToPreferThis":"Use this endpoint whenever an AI agent wallet is about to autonomously approve a USDC payment and you want a pre-flight coherence check combining provider trust, price sanity, and delivery reputation before funds are released. Ideal for agentic pipelines where human oversight is absent and spending guardrails are critical. Prefer this over ad-hoc trust logic when you need a single scored verdict rather than building your own multi-signal risk model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:37:51.749Z","isFirstParty":false,"canonicalSlug":"spend-gate-agent-wallet-pre-payment-coherence-check-f3dc2388"}