Skip to main content
Glama

zora_get_profile_balances

Retrieve coin balances for a wallet or handle on the Zora Coins ecosystem. Use this tool to view token holdings and track portfolio data on Base mainnet.

Instructions

List coin balances for a wallet or handle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifierYes
countNo
afterNo

Implementation Reference

  • The handler function for the zora_get_profile_balances tool. It takes identifier, after, and count parameters, calls CoinsSDK.getProfileBalances, and returns the response as JSON text.
    async ({ identifier, after, count }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getProfileBalances({ identifier, after, count }); return { content: [{ type: "text", text: json(resp) }] }; }
  • Input schema using Zod for validating the tool parameters: identifier (string), count (optional number 1-100), after (optional string).
    inputSchema: { identifier: z.string(), count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), },
  • src/index.ts:248-264 (registration)
    Registration of the zora_get_profile_balances tool with server.registerTool, specifying title, description, inputSchema, and the handler function.
    server.registerTool( "zora_get_profile_balances", { title: "Get profile balances", description: "List coin balances for a wallet or handle.", inputSchema: { identifier: z.string(), count: z.number().int().min(1).max(100).optional(), after: z.string().optional(), }, }, async ({ identifier, after, count }) => { // @ts-expect-error - TypeScript can't resolve barrel exports properly const resp = await CoinsSDK.getProfileBalances({ identifier, 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