{"uid":"cap_Yozqm6fvGK1oOSPXETWH-","slug":"token-approval-risk-analyzer-e02f7b8d","name":"Token Approval Risk Analyzer","description":"Hosted token approval risk for autonomous agents: token-by-token spender approval exposure, allowance-to-balance ratios, risky/unlimited approval flags, revoke-or-cap actions, and agent spend-control policy from fresh D1 wallet snapshots plus live allowance reads. Price 0.25 USDC on Base via x402. Demo: https://wallet-portfolio-history-mcp.mtree.workers.dev/demo/tools/token_approval_risk. Contact: https://wallet-portfolio-history-mcp.mtree.workers.dev/contact.","url":"https://wallet-portfolio-history-mcp.mtree.workers.dev/tools/token_approval_risk","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_8sbWAGHBcBQYB83RVGlH2","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":"Analyzes ERC20 token approval exposure for a wallet address, flagging risky/unlimited approvals, allowance-to-balance ratios, and recommending revoke-or-cap actions for agent spend control.","exampleAgentPrompt":"Audit the token approval risk for my wallet 0xAbC123...def on Base — show me any unlimited or risky approvals, the allowance-to-balance ratios, and what I should revoke or cap before enabling autopay.","exampleUseCases":null,"resultDescription":"Returns a token-by-token breakdown of spender approval exposure including allowance-to-balance ratios, risky/unlimited approval flags, recommended revoke-or-cap actions, and an agent spend-control policy derived from fresh D1 wallet snapshots combined with live on-chain allowance reads.","failureModes":["Invalid or malformed wallet address returns a validation error","Unsupported chain ID returns an error indicating chain is not supported","Payment not included or insufficient (requires 0.25 USDC on Base via x402) returns 402 Payment Required","Wallet with no token approvals returns empty approval list","Downstream RPC or D1 snapshot unavailability may cause timeout or partial data","Rate limiting may return 429 if called too frequently"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to audit a wallet's ERC20 token approval exposure before executing transactions, enabling autopay, or enforcing spend-control policies. It is specifically designed for autonomous agents that need machine-readable risk flags and actionable revoke/cap recommendations, combining historical D1 snapshots with live allowance data for accuracy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:52.064Z","isFirstParty":false}