Skip to main content
Glama

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
NameRequiredDescriptionDefault
addressYes
chainIdNo
afterNo
countNo

Implementation Reference

  • 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) }] };
    }
  • 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) }] };
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/r4topunk/zora-coins-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server