list_endpoints
Discover available Pocket Network endpoints across 70+ blockchain networks. Filter by category to find specific endpoints for Ethereum, Solana, Cosmos, Sui, and other chains.
Instructions
List all available Pocket Network endpoints, optionally filtered by category
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Optional category to filter endpoints |
Implementation Reference
- Handler function for the 'list_endpoints' tool. Extracts optional category filter from input arguments, retrieves endpoints from EndpointManager (filtered or all), and returns them as a formatted JSON text 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 'list_endpoints' tool's name, description, and input schema for optional category filtering. Returned by registerEndpointHandlers for inclusion in the server's tool list.
{ 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 property for filtering endpoints.
inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Optional category to filter endpoints', }, }, }, - src/index.ts:96-96 (registration)Invocation of registerEndpointHandlers in the main server setup, adding endpoint tools including 'list_endpoints' to the server's tools array.
...registerEndpointHandlers(server, endpointManager), - src/index.ts:122-122 (registration)Dispatch to handleEndpointTool in the central tool execution handler, routing 'list_endpoints' calls to its specific implementation.
(await handleEndpointTool(name, args, endpointManager)) ||