# Wallet Allowance Policy Analyzer

> Wallet Allowance Policy Analyzer is a paid API for AI agents from wallet-portfolio-history-mcp.mtree.workers.dev, paid per call via x402, $0.250000/call, status unknown (last checked 2026-09-15).

Analyzes token allowance risk and approval exposure for a wallet, providing revoke/cap guidance and autopay spend-control policy from live allowance reads and D1 snapshots

## Facts

- Endpoint: POST https://wallet-portfolio-history-mcp.mtree.workers.dev/tools/wallet_allowance_policy
- Price: $0.250000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-allowance-policy-analyzer-1212e80b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O-bGzCVmnEaU18HmQ-gh1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability wallet-allowance-policy-analyzer-1212e80b -d '<json body>'
```

Example prompt: Can you audit the token allowance risk for wallet 0xABC...123 on Base — I want to know which spenders have dangerous approval exposure, whether any should be revoked or capped, and what autopay spend-control policy you'd recommend for it?

## When to prefer this

Use this endpoint when you need a comprehensive token allowance risk audit for a Base wallet — specifically when you need curated spender watchlist data, revoke/cap guidance, and autopay spend-control policy in a single call. Prefer this over generic approval checkers when operating an autonomous agent that needs to enforce spend controls or when onboarding a wallet into an agent commerce workflow.

## Known failure modes

- Invalid or non-existent wallet address returns error
- Wallet with no token approvals may return empty allowance list
- Network errors or D1 snapshot staleness may affect freshness of data
- Rate limiting or payment failure (x402) may block the request
- Non-Base EVM addresses may not be supported

## How this service works

Hosted wallet allowance policy for autonomous agents: token allowance risk, approval exposure, curated spender watchlist, revoke/cap guidance, and autopay 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/wallet_allowance_policy. Contact: https://wallet-portfolio-history-mcp.mtree.workers.dev/contact.

## Output

Returns a structured allowance policy report including token-by-token approval exposure, risk scores, a curated spender watchlist with risk flags, specific revoke and cap recommendations, and an autopay spend-control policy derived from fresh D1 wallet snapshots and live on-chain allowance reads

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wallet-allowance-policy-analyzer-1212e80b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wallet-portfolio-history-mcp.mtree.workers.dev](https://www.zero.xyz/host/wallet-portfolio-history-mcp.mtree.workers.dev/llms.txt)
