Skip to main content
Glama

zora_explore_top_volume_24h

Discover the highest trading volume coins on Zora Coins in the last 24 hours to identify trending assets and analyze market activity.

Instructions

Coins with highest trading volume in last 24 hours.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
afterNo

Implementation Reference

  • src/index.ts:297-302 (registration)
    Registration of the 'zora_explore_top_volume_24h' tool using the exploreTool helper. This sets up the tool name, title, description, input schema (pagination: after, count), and a thin handler wrapper that calls CoinsSDK.getCoinsTopVolume24h({ after, count }) and formats the JSON response.
    exploreTool( "zora_explore_top_volume_24h", // @ts-expect-error - TypeScript can't resolve barrel exports properly CoinsSDK.getCoinsTopVolume24h, "Top 24h volume", "Coins with highest trading volume in last 24 hours."
  • The handler function logic (shared via exploreTool) that executes the tool: calls the SDK function with pagination params and returns formatted JSON response.
    async ({ after, count }) => { const resp = await fn({ after, count }); return { content: [{ type: "text", text: json(resp) }] }; }
  • Input schema for the tool: optional pagination parameters (after cursor, count up to 100).
    count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), },
  • exploreTool helper function that standardizes registration of paginated explore tools, providing schema, handler wrapper, and delegating core logic to CoinsSDK functions.
    function exploreTool( name: string, fn: (args: { after?: string; count?: number }) => Promise<unknown>, title: string, description: string ) { server.registerTool( name, { title, description, inputSchema: { count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), }, }, async ({ after, count }) => { const resp = await fn({ after, count }); return { content: [{ type: "text", text: json(resp) }] }; } ); }
  • Utility function to JSON stringify responses, handling bigint conversion for blockchain data.
    function json(data: unknown): string { return JSON.stringify( data, (_k, v) => (typeof v === "bigint" ? v.toString() : v), 2 ); }

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/r4topunk/zora-coins-mcp-server'

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