Skip to main content
Glama
Deconstruct2021

cryptopunks-mcp-server

get_batch_recent_history

Fetch recent transaction history for multiple CryptoPunks simultaneously to compare activity across up to 50 punks in one request.

Instructions

Get recent transaction history for multiple CryptoPunks in a single request. Useful for comparing activity across a set of punks. Maximum 50 punk indices per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
punk_idsYesArray of punk indices to fetch history for (max 50)

Implementation Reference

  • The core handler function that executes the API request for batch recent history.
    export async function getBatchRecentHistory(punkIds: number[]) {
      return get(DATA_BASE, "/api/punks", {
        action: "batch-recent-history",
        punkIds: punkIds.join(","),
      });
    }
  • The MCP tool registration and schema definition for get_batch_recent_history.
    get_batch_recent_history: {
      description:
        "Get recent transaction history for multiple CryptoPunks in a single request. Useful for comparing activity across a set of punks. Maximum 50 punk indices per call.",
      inputSchema: z.object({
        punk_ids: z
          .array(punkIndex)
          .min(1)
          .max(50)
          .describe("Array of punk indices to fetch history for (max 50)"),
      }),
  • The tool dispatch logic that calls the API handler.
    case "get_batch_recent_history": {
      const result = await api.getBatchRecentHistory(args.punk_ids);
      return ok(result);
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Deconstruct2021/cryptopunks-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server