get_floor_price
Retrieve the current floor price of an NFT collection by providing its contract address. This tool helps users assess collection value and make informed decisions in NFT markets.
Instructions
Get floor price for an NFT collection
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contractAddress | Yes | The contract address of the NFT collection |
Implementation Reference
- index.ts:551-564 (registration)Registration of the 'get_floor_price' tool in the listTools response, including name, description, and input schema definition.{ name: "get_floor_price", description: "Get floor price for an NFT collection", inputSchema: { type: "object", properties: { contractAddress: { type: "string", description: "The contract address of the NFT collection", }, }, required: ["contractAddress"], }, },
- index.ts:68-68 (schema)Type definition for the input parameters of the get_floor_price tool.type GetFloorPriceParams = { contractAddress: string };
- index.ts:193-199 (helper)Validation function to check if arguments match GetFloorPriceParams type, used in handler.const isValidGetFloorPriceParams = (args: any): args is GetFloorPriceParams => { return ( typeof args === "object" && args !== null && typeof args.contractAddress === "string" ); };