Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

list_categories

Retrieve all available blockchain endpoint categories to access data across 70+ networks including Ethereum, Solana, Cosmos, and Sui.

Instructions

List all available endpoint categories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler implementation for 'list_categories'. Retrieves categories via endpointManager and returns formatted JSON response.
    case 'list_categories': {
      const categories = endpointManager.getCategories();
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(categories, null, 2),
          },
        ],
      };
    }
  • Tool registration definition for 'list_categories', including name, description, and empty input schema (no parameters). Returned by registerEndpointHandlers for server registration.
    {
      name: 'list_categories',
      description: 'List all available endpoint categories',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Input schema validation for list_categories tool (accepts empty object).
    inputSchema: {
      type: 'object',
      properties: {},
    },
  • Helper method in EndpointManager that provides the list of categories from server configuration, called by the tool handler.
    /**
     * Get all available categories
     */
    getCategories(): string[] {
      return this.config.categories;
    }

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/buildwithgrove/mcp-pocket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server