{"uid":"cap_0JS5qJ23Sz-_6bM97ogwE","slug":"wallet-spend-limit-policy-38f54adb","name":"Wallet Spend-Limit Policy","description":"Hosted wallet spend-limit policy for autonomous agents: per-call and per-counterparty caps, autopay spend controls, wallet risk score, transaction-pattern burst signals, counterparty exposure, and fresh D1 provenance before an agent pays. Price 0.25 USDC on Base via x402. Demo: https://wallet-portfolio-history-mcp.mtree.workers.dev/demo/tools/wallet_spend_limit_policy. Contact: https://wallet-portfolio-history-mcp.mtree.workers.dev/contact.","url":"https://wallet-portfolio-history-mcp.mtree.workers.dev/tools/wallet_spend_limit_policy","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","required":["address"],"properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"limit":{"type":"integer","maximum":50,"minimum":1},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"refresh":{"type":"boolean"}}},"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.250000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.250000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M-ON_Y7j9nWlzVnsd0tmG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates per-call and per-counterparty spend caps, autopay controls, wallet risk score, and burst signals to produce a pre-payment policy decision for autonomous agents","exampleAgentPrompt":"Before my agent pays 50 USDC to counterparty 0xAbC123... from wallet 0xDef456..., check the spend-limit policy — give me the per-call cap status, counterparty exposure, autopay controls, and wallet risk score so I know if it's safe to proceed.","exampleUseCases":null,"resultDescription":"Returns a structured spend-limit policy decision including per-call cap evaluation, per-counterparty cap status, autopay spend controls, a 0-100 wallet risk score, transaction-pattern burst signals, counterparty exposure summary, and freshness provenance (D1 snapshot timestamp) — giving the agent a clear approve/deny/flag recommendation before executing a payment.","failureModes":["Invalid or unrecognized wallet address returns an error or empty policy","Stale D1 snapshot may reduce provenance freshness score","Missing counterparty address prevents per-counterparty cap evaluation","Network timeout from Blockscout or D1 data source causes partial results","Payment of 0.25 USDC not fulfilled causes 402 rejection before policy is evaluated"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs a pre-payment policy gate — specifically when you need combined per-call caps, per-counterparty exposure limits, autopay controls, burst detection, and a wallet risk score in a single call before authorizing a payment. Prefer over generic risk scorers when you need spend-limit enforcement logic (not just a score) with D1-fresh provenance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:30:32.101Z","isFirstParty":false}