zora_explore_last_traded
Retrieve recently traded coins on Zora Coins to track market activity and identify trading opportunities.
Instructions
Coins most recently traded.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| after | No |
Implementation Reference
- src/index.ts:318-324 (registration)Registration of the 'zora_explore_last_traded' MCP tool. Calls exploreTool helper, which registers a paginated query tool that invokes CoinsSDK.getCoinsLastTraded({after?, count?}) and returns formatted JSON response.exploreTool( "zora_explore_last_traded", // @ts-expect-error - TypeScript can't resolve barrel exports properly CoinsSDK.getCoinsLastTraded, "Last traded", "Coins most recently traded." );
- src/index.ts:267-288 (helper)Helper function exploreTool that handles registration, schema (Zod inputSchema for pagination: count (1-100), after), and shared handler logic for explore tools. Wraps the SDK function call and formats output.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)Zod input schema for the tool: optional 'count' (int 1-100) and 'after' (string) for pagination.inputSchema: { count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), },