{
  "$comment": "GENERATED FROM api/_tools/<slug>/route.mjs — do not edit by hand",
  "type": "https://eips.ethereum.org/EIPS/eip-8257#tool-manifest-v1",
  "name": "token-due-diligence",
  "description": "Token safety and quality analysis on Base. Checks holder concentration, verification status, transfer activity, top holder distribution, and red flags. Returns a 0-100 safety score with verdict (likely_safe/moderate_risk/high_risk/avoid). 2min cache. $0.05 USDC per call; AXIOM Tool Pass holders get free access.",
  "endpoint": "https://www.clawbots.org/api/tools/token-due-diligence",
  "inputs": {
    "type": "object",
    "properties": {
      "token": {
        "type": "string",
        "description": "ERC-20 token contract address on Base (0x...)",
        "pattern": "^0x[a-fA-F0-9]{40}$"
      }
    },
    "required": [
      "token"
    ],
    "additionalProperties": false
  },
  "outputs": {
    "type": "object",
    "properties": {
      "token": {
        "type": "string"
      },
      "chain": {
        "type": "string"
      },
      "fetchedAt": {
        "type": "string",
        "format": "date-time"
      },
      "name": {
        "type": [
          "string",
          "null"
        ]
      },
      "symbol": {
        "type": [
          "string",
          "null"
        ]
      },
      "decimals": {
        "type": [
          "integer",
          "null"
        ]
      },
      "safetyScore": {
        "type": "integer",
        "minimum": 0,
        "maximum": 100
      },
      "verdict": {
        "type": "string",
        "enum": [
          "likely_safe",
          "moderate_risk",
          "high_risk",
          "avoid"
        ]
      },
      "flags": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "positives": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "details": {
        "type": "object",
        "properties": {
          "holderCount": {
            "type": "string"
          },
          "transferCount": {
            "type": "string"
          },
          "isVerified": {
            "type": "boolean"
          },
          "totalSupply": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "holderCount",
          "transferCount",
          "isVerified"
        ]
      },
      "topHolders": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "address": {
              "type": [
                "string",
                "null"
              ]
            },
            "label": {
              "type": [
                "string",
                "null"
              ]
            },
            "value": {
              "type": "string"
            }
          }
        }
      }
    },
    "required": [
      "token",
      "chain",
      "fetchedAt",
      "safetyScore",
      "verdict",
      "flags",
      "positives",
      "details",
      "topHolders"
    ]
  },
  "creatorAddress": "0xef2cc7d15d3421629f93ffa39727f14179f31c75",
  "tags": [
    "token",
    "due-diligence",
    "safety",
    "base",
    "defi"
  ],
  "pricing": [
    {
      "amount": "0.05",
      "asset": "USDC",
      "recipient": "0xef2cc7d15d3421629f93ffa39727f14179f31c75",
      "protocol": "x402"
    }
  ],
  "authentication": [
    {
      "type": "siwe",
      "description": "Sign In With Ethereum. Holders of the Axiom Tool Pass NFT get free unlimited access. Sign a SIWE message proving wallet ownership; the server verifies your wallet holds the pass on-chain.",
      "header": "Authorization: SIWE <base64url(message)>.<0xsignature>",
      "passContract": "0xfc9ce3990f85fA1A3a0eE51a710642396a6Cad82",
      "chain": "base",
      "chainId": 8453,
      "collection": "https://opensea.io/collection/axiom-tool-pass"
    },
    {
      "type": "x402",
      "description": "Pay per call in USDC on Base via the x402 protocol. No account or API key needed.",
      "header": "x-payment: <x402 authorization>"
    }
  ],
  "onChain": {
    "registry": "0x265BB2DBFC0A8165C9A1941Eb1372F349baD2cf1",
    "chainId": 8453,
    "toolId": 25
  }
}
