Skip to main content
Glama

zora_get_coins

Retrieve multiple Zora Coins data by providing collection addresses and chain IDs to fetch token information from the Base mainnet.

Instructions

Batch fetch coins by address and chainId.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinsYes

Implementation Reference

  • src/index.ts:117-138 (registration)
    Registration of the 'zora_get_coins' MCP tool, including input schema and inline handler function.
    server.registerTool( "zora_get_coins", { title: "Get multiple coins", description: "Batch fetch coins by address and chainId.", inputSchema: { coins: z .array( z.object({ collectionAddress: z.string(), chainId: z.number().default(DEFAULT_CHAIN.id), }) ) .min(1), }, }, async ({ coins }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoins({ coins }); return { content: [{ type: "text", text: json(resp) }] }; } );
  • Input schema definition for the 'zora_get_coins' tool using Zod, specifying an array of coin objects with collectionAddress and optional chainId.
    { title: "Get multiple coins", description: "Batch fetch coins by address and chainId.", inputSchema: { coins: z .array( z.object({ collectionAddress: z.string(), chainId: z.number().default(DEFAULT_CHAIN.id), }) ) .min(1), }, },
  • Handler function for 'zora_get_coins' that delegates to CoinsSDK.getCoins and formats the response as MCP content.
    async ({ coins }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoins({ coins }); 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