{
  "schema_version": "1.0",
  "name": "AgentShield",
  "description": "Wallet security infrastructure for autonomous AI agents. Verifies contracts against a curated allowlist, detects drain attacks in real-time, and enforces spending caps. Prevents the $23k+ losses that come from auto-approving malicious contracts.",
  "url": "https://agentshield.win",
  "contact": "security@agentshield.io",
  "capabilities": [
    {
      "id": "contract_verify",
      "name": "Contract Verification",
      "description": "Verify if a smart contract address is safe to interact with before approving token transfers. Returns safety score, risk flags, and recommendation.",
      "endpoint": "https://agentshield.win/verify",
      "method": "GET",
      "parameters": {
        "contract": {
          "type": "string",
          "required": true,
          "description": "Contract address (0x...)"
        },
        "chain": {
          "type": "string",
          "required": false,
          "default": "ethereum",
          "enum": [
            "ethereum",
            "base",
            "polygon",
            "arbitrum"
          ]
        }
      },
      "payment": {
        "required": true,
        "protocol": "x402",
        "amount": "0.001",
        "currency": "USDC",
        "network": "base",
        "recipient": "0x4BBc455ff6bA13682feC3b5F0261520b28C19e1c"
      },
      "response_schema": {
        "safe": "boolean — whether interaction is recommended",
        "score": "number 0-1 — confidence score",
        "verdict": "string — APPROVED | BLOCKED | UNKNOWN",
        "risk_level": "string — LOW | MEDIUM | HIGH | CRITICAL",
        "flags": "array — specific risk flags detected",
        "recommendation": "string — human-readable guidance"
      },
      "example_call": "GET https://agentshield.win/verify?contract=0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
      "example_response": {
        "safe": true,
        "score": 0.99,
        "verdict": "APPROVED",
        "risk_level": "LOW",
        "flags": [],
        "name": "Uniswap V2 Router",
        "recommendation": "Contract is on the verified allowlist. Interaction is permitted."
      }
    },
    {
      "id": "drain_monitor",
      "name": "Real-Time Drain Detection",
      "description": "Register an agent wallet for continuous monitoring. Instantly notifies and freezes all agent wallets if >20% balance drop is detected in a single transaction.",
      "endpoint": "https://agentshield.win/monitor",
      "method": "POST",
      "payment": {
        "required": true,
        "protocol": "stripe_mpp",
        "amount": "49.00",
        "currency": "USD",
        "frequency": "monthly",
        "note": "x402 per-call payment coming in v1.1"
      }
    },
    {
      "id": "emergency_freeze",
      "name": "Emergency Wallet Freeze",
      "description": "Immediately freeze all wallets associated with an agent ID. Use when a drain is detected or anomalous behavior is observed.",
      "endpoint": "https://agentshield.win/freeze",
      "method": "POST",
      "payment": {
        "required": false,
        "note": "Included with drain monitoring subscription"
      }
    }
  ],
  "usage_guidance": {
    "recommended_workflow": [
      "1. Before ANY token approval: call /verify with the contract address",
      "2. If safe=false or verdict=UNKNOWN, reject the approval",
      "3. Register all wallets with /monitor on startup",
      "4. Handle drain webhook callbacks to freeze activity immediately"
    ],
    "integration_pattern": "Call /verify synchronously within your approval decision flow. This adds ~50ms latency but prevents catastrophic loss.",
    "mcp_server": "https://agentshield.win/mcp — MCP server for direct tool integration with Claude, GPT, and other MCP-compatible agents"
  },
  "pricing": {
    "contract_verification": {
      "price": "$0.001",
      "unit": "per call",
      "protocol": "x402"
    },
    "drain_monitoring": {
      "price": "$49",
      "unit": "per agent per month",
      "protocol": "stripe_mpp"
    },
    "spending_cap_enforcer": {
      "price": "$99",
      "unit": "per agent fleet per month",
      "available": "v1.2"
    }
  },
  "trust": {
    "data_sources": [
      "Uniswap official",
      "1inch verified",
      "OpenZeppelin audits",
      "Aave official",
      "Compound official"
    ],
    "contracts_in_allowlist": 500,
    "false_positive_rate": "< 0.5%",
    "response_time_p99": "< 100ms"
  }
}