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
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| chainId | No |
Implementation Reference
- src/index.ts:110-114 (handler)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) }] }; }
- src/index.ts:105-108 (schema)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) }] }; } );