get_punk_traits
Retrieve detailed trait information for any CryptoPunk, including type, attributes array, and rarity count. Use this tool to analyze individual punk characteristics for research or collection purposes.
Instructions
Get the traits (attributes) for a specific CryptoPunk: type, type name, attributes array, and count. Returns accurate type data for all punk types including Aliens, Apes, and Zombies.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"punk_index": "<punk_index>"
},
"name": "get_punk_traits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| punk_index | Yes | CryptoPunk index (0–9999) |
Implementation Reference
- src/api.ts:115-117 (handler)The API function that implements the logic to fetch punk traits from the CryptoPunks API.
export async function getPunkTraits(punkId: number) { return get(DATA_BASE, `/api/traits/${punkId}`); }