zora_get_coin_comments
Fetch paginated comments for any coin on the Zora Coins platform to analyze community discussions and feedback.
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)Handler function that fetches coin comments using CoinsSDK.getCoinComments and returns JSON-formatted response.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 parameters: address (required), chainId (optional, defaults to Base), after (optional cursor), count (optional, 1-100).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)MCP tool registration including name, metadata, input schema, and handler function.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) }] }; } );