Skip to main content
Glama

zora_explore_most_valuable

Discover coins with the highest market capitalization on Zora's Base mainnet. Query top-value coins to analyze market trends and identify leading assets.

Instructions

Coins with highest market capitalization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
afterNo

Implementation Reference

  • src/index.ts:304-310 (registration)
    Registration of the 'zora_explore_most_valuable' tool. Calls exploreTool helper, passing the name, the core SDK function CoinsSDK.getCoinsMostValuable, title, and description. The helper handles schema definition and handler wrapper.
    exploreTool(
      "zora_explore_most_valuable",
      // @ts-expect-error - TypeScript can't resolve barrel exports properly
      CoinsSDK.getCoinsMostValuable,
      "Most valuable",
      "Coins with highest market capitalization."
    );
  • Helper function exploreTool that registers MCP tools with standardized input schema (count, after), title, description, and a generic handler that invokes the provided fn (SDK function) and formats the response as JSON text content.
    function exploreTool(
      name: string,
      fn: (args: { after?: string; count?: number }) => Promise<unknown>,
      title: string,
      description: string
    ) {
      server.registerTool(
        name,
        {
          title,
          description,
          inputSchema: {
            count: z.number().int().min(1).max(100).optional(),
            after: z.string().optional(),
          },
        },
        async ({ after, count }) => {
          const resp = await fn({ after, count });
          return { content: [{ type: "text", text: json(resp) }] };
        }
      );
    }
  • Input schema for explore tools, including optional 'count' (1-100) and 'after' cursor parameters, defined within the exploreTool helper.
    inputSchema: {
      count: z.number().int().min(1).max(100).optional(),
      after: z.string().optional(),
    },
  • Handler function for the tool, which calls the provided SDK function (CoinsSDK.getCoinsMostValuable) with pagination params and returns formatted JSON response.
    async ({ after, count }) => {
      const resp = await fn({ 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