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
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Optional 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), }, ], }; }
- src/handlers/endpoint-handlers.ts:15-27 (registration)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); }