Skip to main content
Glama

zora_get_coin

Retrieve metadata, market data, and creator information for a specific coin on the Zora Coins ecosystem using its address and chain ID.

Instructions

Fetch metadata, market data & creator info for a coin.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYes
chainIdNo

Implementation Reference

  • The handler function for 'zora_get_coin' that fetches coin details using CoinsSDK.getCoin and returns formatted JSON response.
    async ({ address, chainId }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoin({ address, chain: chainId ?? DEFAULT_CHAIN.id }); return { content: [{ type: "text", text: json(resp) }] }; }
  • Input schema defining required 'address' string and optional 'chainId' number using Zod.
    inputSchema: { address: z.string().min(1, "address is required"), chainId: z.number().optional(), },
  • src/index.ts:100-115 (registration)
    Registration of the 'zora_get_coin' tool using McpServer.registerTool, including schema and inline handler.
    server.registerTool( "zora_get_coin", { title: "Get coin details", description: "Fetch metadata, market data & creator info for a coin.", inputSchema: { address: z.string().min(1, "address is required"), chainId: z.number().optional(), }, }, async ({ address, chainId }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getCoin({ address, chain: chainId ?? DEFAULT_CHAIN.id }); 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