zora_explore_most_valuable
Query coins with the highest market capitalization on Zora's Base mainnet to identify top-value assets for market analysis and investment decisions.
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)Registers the 'zora_explore_most_valuable' tool using the exploreTool helper, which calls CoinsSDK.getCoinsMostValuable for the core logic.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 that defines the shared schema, registration pattern, and wrapper handler for paginated explore tools like 'zora_explore_most_valuable'.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:279-281 (schema)Input schema for pagination parameters (count, after) used by the exploreTool, including for 'zora_explore_most_valuable'.count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), },
- src/index.ts:283-286 (handler)Wrapper handler function inside exploreTool that executes the provided fn (CoinsSDK.getCoinsMostValuable for this tool) and formats the response.async ({ after, count }) => { const resp = await fn({ after, count }); return { content: [{ type: "text", text: json(resp) }] }; }