get_attribute_stats
Analyze CryptoPunks rarity by calculating trait distribution statistics across the entire 10,000 NFT collection.
Instructions
Get trait distribution statistics across the entire 10,000 CryptoPunks collection — how many punks have each attribute, enabling rarity analysis.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/api.ts:158-160 (handler)The implementation of the get_attribute_stats tool logic.
export async function getAttributeStats() { return get(DATA_BASE, "/api/punks", { action: "attributes" }); } - src/tools.ts:133-137 (registration)The schema definition and registration of the get_attribute_stats tool.
get_attribute_stats: { description: "Get trait distribution statistics across the entire 10,000 CryptoPunks collection — how many punks have each attribute, enabling rarity analysis.", inputSchema: z.object({}), }, - src/handlers.ts:322-325 (handler)The handler case for the get_attribute_stats tool that invokes the API implementation.
case "get_attribute_stats": { const result = await api.getAttributeStats(); return ok(result); }