{
  "$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": "trait-floor",
  "description": "Trait-filtered floor price for an OpenSea collection. The collection floor is the cheapest *anything* listed — useless when traits are rarity-priced. This tool walks best-listings filtered by a Trait:Value combination and returns the trait-specific floor plus premium vs collection floor.",
  "endpoint": "https://www.clawbots.org/api/tools/trait-floor",
  "image": "https://www.clawbots.org/tools/icons/trait-floor.png",
  "featuredImage": "https://www.clawbots.org/tools/featured/trait-floor.png",
  "inputs": {
    "type": "object",
    "properties": {
      "collection": {
        "type": "string",
        "description": "OpenSea collection slug."
      },
      "traits": {
        "type": "array",
        "description": "Array of {traitType, value} objects. Strings 'Type:Value' also accepted.",
        "items": {
          "type": "object",
          "properties": {
            "traitType": {
              "type": "string"
            },
            "value": {
              "type": "string"
            }
          },
          "required": [
            "traitType",
            "value"
          ]
        },
        "minItems": 1,
        "maxItems": 5
      },
      "limit": {
        "type": "integer",
        "description": "Max listings to fetch (default 5, max 50).",
        "default": 5
      }
    },
    "required": [
      "collection",
      "traits"
    ],
    "additionalProperties": false
  },
  "outputs": {
    "type": "object",
    "properties": {
      "collection": {
        "type": "string"
      },
      "traits": {
        "type": "array",
        "items": {
          "type": "object"
        }
      },
      "traitFloorEth": {
        "type": [
          "number",
          "null"
        ],
        "description": "Cheapest listing matching the trait filter, in ETH."
      },
      "collectionFloorEth": {
        "type": [
          "number",
          "null"
        ],
        "description": "Collection-wide floor, in ETH."
      },
      "premiumPct": {
        "type": [
          "number",
          "null"
        ],
        "description": "(traitFloor / collectionFloor - 1) * 100."
      },
      "listings": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "eth": {
              "type": "number"
            },
            "tokenId": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "eth"
          ]
        }
      },
      "listingsFound": {
        "type": "integer"
      },
      "fetchedAt": {
        "type": "string",
        "format": "date-time"
      }
    },
    "required": [
      "collection",
      "traits",
      "listings",
      "listingsFound",
      "fetchedAt"
    ]
  },
  "creatorAddress": "0xef2cc7d15d3421629f93ffa39727f14179f31c75",
  "tags": [
    "opensea",
    "nft",
    "floor",
    "trait",
    "rarity",
    "pricing"
  ],
  "pricing": [
    {
      "amount": "0.03",
      "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": 57
  }
}
