# Wallet Activity-Risk Score for Agents

> Wallet Activity-Risk Score for Agents is a paid API for AI agents from wallet-portfolio-history-mcp.mtree.workers.dev, paid per call via x402, $0.200000/call, status unknown (last checked 2026-09-15).

Returns a comprehensive activity-risk score (0-100) for a Base wallet address, including transaction velocity, failed calls, counterparty concentration, protocol touchpoints, balance context, alerts, and a recommended autopay/signing policy for autonomous agents.

## Facts

- Endpoint: POST https://wallet-portfolio-history-mcp.mtree.workers.dev/tools/wallet_activity_risk
- Price: $0.200000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-activity-risk-score-for-agents-8acdfdca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xCaK_k8A5JHliMLJNlRxS

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-activity-risk-score-for-agents-8acdfdca -d '<json body>'
```

Example prompt: Before you auto-approve this payment, can you run an activity risk check on the wallet 0x4a8f...c3d2 on Base and tell me the risk score, any alerts, and whether you recommend I allow autopay or signing for it?

## When to prefer this

Use this endpoint when an autonomous agent needs a holistic, pre-action risk assessment of a wallet before executing autopay, signing, or initiating a transaction — particularly when you need a single consolidated score with policy recommendation rather than raw transaction data or individual sub-scores.

## Known failure modes

- Invalid or malformed wallet address returns a validation error
- Wallet with no on-chain history may return a minimal or zero-activity score
- Payment not included or insufficient USDC balance results in x402 payment required error
- Network or D1 data refresh lag may cause stale snapshot data
- Unsupported chain (non-Base address) may return empty or error response

## How this service works

Hosted wallet activity-risk score for agents before autopay or signing: transaction velocity, failed calls, counterparty concentration, protocol touchpoints, balance context, alerts, and recommended agent policy from refreshed D1 wallet history. Price 0.20 USDC on Base via x402. Demo: https://wallet-portfolio-history-mcp.mtree.workers.dev/demo/tools/wallet_activity_risk. Contact: https://wallet-portfolio-history-mcp.mtree.workers.dev/contact.

## Output

A structured report containing a 0-100 activity risk score, transaction velocity metrics, failed call signal counts, counterparty concentration analysis, protocol touchpoints, current balance context, any risk alerts, and a recommended autopay or signing policy for the agent to act on.

## 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-activity-risk-score-for-agents-8acdfdca/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)
