zora_explore_most_valuable
Discover coins with the highest market capitalization on Zora's Base mainnet. Query top-value coins to analyze market trends and identify leading assets.
Instructions
Coins with highest market capitalization.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| after | No |
Implementation Reference
- src/index.ts:304-310 (registration)Registration of the 'zora_explore_most_valuable' tool. Calls exploreTool helper, passing the name, the core SDK function CoinsSDK.getCoinsMostValuable, title, and description. The helper handles schema definition and handler wrapper.exploreTool( "zora_explore_most_valuable", // @ts-expect-error - TypeScript can't resolve barrel exports properly CoinsSDK.getCoinsMostValuable, "Most valuable", "Coins with highest market capitalization." );
- src/index.ts:267-288 (helper)Helper function exploreTool that registers MCP tools with standardized input schema (count, after), title, description, and a generic handler that invokes the provided fn (SDK function) and formats the response as JSON text content.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) }] }; } ); }
- src/index.ts:278-281 (schema)Input schema for explore tools, including optional 'count' (1-100) and 'after' cursor parameters, defined within the exploreTool helper.inputSchema: { count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), },
- src/index.ts:283-286 (handler)Handler function for the tool, which calls the provided SDK function (CoinsSDK.getCoinsMostValuable) with pagination params and returns formatted JSON response.async ({ after, count }) => { const resp = await fn({ after, count }); return { content: [{ type: "text", text: json(resp) }] }; }