get_punk_metadata
Retrieve accurate CryptoPunk metadata including type classification (Male/Female/Alien/Ape/Zombie), attributes array, and attribute count for any punk index.
Instructions
Get lightweight metadata for a CryptoPunk: type, type name, attributes array, and attribute count. This is the most reliable endpoint for accurate type classification (Male/Female/Alien/Ape/Zombie).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| punk_index | Yes | CryptoPunk index (0–9999) |
Implementation Reference
- src/api.ts:92-94 (handler)The actual implementation of the tool, which makes a GET request to the CryptoPunks API.
export async function getPunkMetadata(punkIndex: number) { return get(DATA_BASE, `/api/punks/${punkIndex}/metadata`); } - src/handlers.ts:214-216 (handler)The MCP tool handler that invokes `api.getPunkMetadata`.
case "get_punk_metadata": { const result = await api.getPunkMetadata(args.punk_index); return ok(result); - src/tools.ts:46-48 (registration)The definition and registration of the 'get_punk_metadata' tool.
get_punk_metadata: { description: "Get lightweight metadata for a CryptoPunk: type, type name, attributes array, and attribute count. This is the most reliable endpoint for accurate type classification (Male/Female/Alien/Ape/Zombie).",