Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

list_endpoints

Discover available Grove's public endpoints for Pocket Network to access blockchain data across 70+ networks, with optional category filtering to find specific endpoints.

Instructions

List all available Grove's public endpoints for Pocket Network, optionally filtered by category

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoOptional category to filter endpoints

Implementation Reference

  • Core execution logic for the list_endpoints MCP tool. Handles optional category filter and delegates to EndpointManager for data retrieval, formats as JSON response.
    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), }, ], }; }
  • Tool registration object defining the name, description, and input schema for list_endpoints, returned by registerEndpointHandlers.
    { 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 defining the optional 'category' parameter for the list_endpoints tool.
    inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Optional category to filter endpoints', }, }, },
  • Supporting helper methods in EndpointManager class: getAllEndpoints() returns all endpoints from config; getEndpointsByCategory(category) filters by category. These are called by the tool handler.
    getAllEndpoints(): EndpointConfig[] { return this.config.endpoints; } /** * Get endpoints by category */ getEndpointsByCategory(category: string): EndpointConfig[] { return this.config.endpoints.filter(ep => ep.category === category); }

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