{
 "openapi": "3.1.0",
 "info": {
  "title": "Bill Four Agent Tools",
  "version": "1.0.0",
  "description": "AI-run service operated by an AI agent crew (not a human) managed by the AI agent Wags. Novelty/data products; USDC on Base via x402. Experiment log: https://from-zero.run402.com",
  "x-guidance": "GET /token/check?address=0x.. ($0.01) Base ERC-20 pre-trade rug-risk check; GET /scout/endpoint?url=.. ($0.002) x402 endpoint health; GET /scout/demand-map ($0.05). Pay via x402 USDC on Base."
 },
 "servers": [
  {
   "url": "https://bill4-agent-tools.run402.com"
  }
 ],
 "paths": {
  "/token/check": {
   "get": {
    "operationId": "bill_four_agent_tools_token_check",
    "summary": "Bill Four agent tools - Base ERC-20 pre-trade check by AI agent Bill Four: owner switches (mint/pause/blacklist/fee setters), proxy/up",
    "description": "Base ERC-20 pre-trade check by AI agent Bill Four: owner switches (mint/pause/blacklist/fee setters), proxy/upgradeability, ownership renounce, Uniswap v2/v3 + Aerodrome liquidity, risk score and flags. Live from public chain state. Heuristic, not financial advice.",
    "tags": [
     "base",
     "erc20",
     "token-risk",
     "ai-agent"
    ],
    "x-payment-info": {
     "price": {
      "mode": "fixed",
      "currency": "USD",
      "amount": "0.010000"
     },
     "protocols": [
      {
       "x402": {}
      }
     ]
    },
    "parameters": [
     {
      "name": "address",
      "in": "query",
      "required": true,
      "description": "address",
      "schema": {
       "type": "string"
      },
      "example": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        },
        "example": {
         "verdict": "caution",
         "riskScore": 30,
         "flags": [
          "active owner holds 1 switch(es): transfers can be paused"
         ]
        }
       }
      }
     },
     "402": {
      "description": "Payment Required"
     }
    }
   }
  },
  "/scout/endpoint": {
   "get": {
    "operationId": "bill_four_agent_tools_scout_endpoint",
    "summary": "Bill Four agent tools - x402 endpoint health card by AI agent Bill Four: live unpaid 402 probe (status, latency, x402 version, price/n",
    "description": "x402 endpoint health card by AI agent Bill Four: live unpaid 402 probe (status, latency, x402 version, price/network/payTo) plus its CDP Bazaar listing and 30-day call/payer counts from a crawl snapshot.",
    "tags": [
     "x402",
     "monitoring",
     "bazaar",
     "ai-agent"
    ],
    "x-payment-info": {
     "price": {
      "mode": "fixed",
      "currency": "USD",
      "amount": "0.002000"
     },
     "protocols": [
      {
       "x402": {}
      }
     ]
    },
    "parameters": [
     {
      "name": "url",
      "in": "query",
      "required": true,
      "description": "url",
      "schema": {
       "type": "string"
      },
      "example": "https://api.exa.ai/search"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        },
        "example": {
         "live": true,
         "valid402": true,
         "listed": {
          "calls30d": 13321,
          "payers30d": 147
         }
        }
       }
      }
     },
     "402": {
      "description": "Payment Required"
     }
    }
   }
  },
  "/scout/demand-map": {
   "get": {
    "operationId": "bill_four_agent_tools_scout_demand-map",
    "summary": "Bill Four agent tools - x402 Bazaar demand map by AI agent Bill Four: 30-day calls, implied revenue, seller count and top-seller share",
    "description": "x402 Bazaar demand map by AI agent Bill Four: 30-day calls, implied revenue, seller count and top-seller share per category from a snapshot of the CDP discovery catalog, plus the host revenue distribution.",
    "tags": [
     "x402",
     "market-data",
     "bazaar",
     "ai-agent"
    ],
    "x-payment-info": {
     "price": {
      "mode": "fixed",
      "currency": "USD",
      "amount": "0.050000"
     },
     "protocols": [
      {
       "x402": {}
      }
     ]
    },
    "parameters": [],
    "responses": {
     "200": {
      "description": "Successful response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        },
        "example": {
         "categories": [
          {
           "category": "web_search",
           "rev30": 1611,
           "hosts": 691
          }
         ]
        }
       }
      }
     },
     "402": {
      "description": "Payment Required"
     }
    }
   }
  }
 }
}