Skip to main content
Glama
buildwithgrove

Grove Public Endpoints MCP Server

Official

list_endpoints

Discover available Pocket Network endpoints for blockchain access, with optional filtering by category to find specific network connections.

Instructions

List all available Pocket Network endpoints, optionally filtered by category

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoOptional category to filter endpoints

Implementation Reference

  • The execution handler for the list_endpoints tool. It handles the tool call by optionally filtering endpoints by category using the endpointManager service and returns the list as formatted JSON.
    case 'list_endpoints': {
      const category = args?.category as string | undefined;
      const endpoints = category
        ? endpointManager.getEndpointsByCategory(category)
        : endpointManager.getAllEndpoints();
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(endpoints, null, 2),
          },
        ],
      };
    }
  • The tool registration definition for list_endpoints, returned by registerEndpointHandlers. Includes the tool name, description, and input schema for category filter.
    {
      name: 'list_endpoints',
      description: "List all available Pocket Network endpoints, optionally filtered by category",
      inputSchema: {
        type: 'object',
        properties: {
          category: {
            type: 'string',
            description: 'Optional category to filter endpoints',
          },
        },
      },
    },
  • Input schema for the list_endpoints tool, defining an optional 'category' string parameter.
    inputSchema: {
      type: 'object',
      properties: {
        category: {
          type: 'string',
          description: 'Optional category to filter endpoints',
        },
      },
    },
  • src/index.ts:88-101 (registration)
    Collection of all tool registrations including registerEndpointHandlers, used for the listTools MCP handler.
    const tools: Tool[] = [
      ...registerBlockchainHandlers(server, blockchainService),
      ...registerDomainHandlers(server, domainResolver),
      ...registerTransactionHandlers(server, advancedBlockchain),
      ...registerTokenHandlers(server, advancedBlockchain),
      ...registerMultichainHandlers(server, advancedBlockchain),
      ...registerContractHandlers(server, advancedBlockchain),
      ...registerUtilityHandlers(server, advancedBlockchain),
      ...registerEndpointHandlers(server, endpointManager),
      ...registerSolanaHandlers(server, solanaService),
      ...registerCosmosHandlers(server, cosmosService),
      ...registerSuiHandlers(server, suiService),
      ...registerDocsHandlers(server, docsManager),
    ];
  • src/index.ts:122-122 (registration)
    Dispatch to handleEndpointTool in the main tool execution handler, which routes list_endpoints to its case.
    (await handleEndpointTool(name, args, endpointManager)) ||

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'

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