zora_get_coin_comments
Fetch paginated comments for any Zora coin on Base mainnet to analyze community feedback and discussions.
Instructions
Fetch comments associated with a coin (paginated).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| chainId | No | ||
| after | No | ||
| count | No |
Implementation Reference
- src/index.ts:200-209 (handler)The handler function for the 'zora_get_coin_comments' tool. It takes input parameters, calls CoinsSDK.getCoinComments to fetch the comments, and returns the response as formatted JSON text.async ({ address, chainId, after, count }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoinComments({ address, chain: chainId, after, count, }); return { content: [{ type: "text", text: json(resp) }] }; }
- src/index.ts:193-198 (schema)Zod input schema defining the parameters for the tool: coin address, chain ID (default), pagination cursor, and count.inputSchema: { address: z.string(), chainId: z.number().default(DEFAULT_CHAIN.id), after: z.string().optional(), count: z.number().int().min(1).max(100).optional(), },
- src/index.ts:188-210 (registration)The server.registerTool call that registers the 'zora_get_coin_comments' tool with the MCP server, providing name, metadata, schema, and handler.server.registerTool( "zora_get_coin_comments", { title: "Get coin comments", description: "Fetch comments associated with a coin (paginated).", inputSchema: { address: z.string(), chainId: z.number().default(DEFAULT_CHAIN.id), after: z.string().optional(), count: z.number().int().min(1).max(100).optional(), }, }, async ({ address, chainId, after, count }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoinComments({ address, chain: chainId, after, count, }); return { content: [{ type: "text", text: json(resp) }] }; } );