get_endpoint_docs
Retrieve detailed documentation for blockchain endpoints to understand how to interact with Ethereum, Solana, Cosmos, and Layer 2 networks through Grove's public API services.
Instructions
Get documentation for a specific endpoint
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpointId | Yes | The ID of the endpoint |
Implementation Reference
- src/handlers/docs-handlers.ts:107-131 (handler)Executes the get_endpoint_docs tool by calling docsManager.getEndpointDocs and returning the result as JSON or error message.case 'get_endpoint_docs': { const endpointId = args?.endpointId as string; const docPage = await docsManager.getEndpointDocs(endpointId); if (!docPage) { return { content: [ { type: 'text', text: `Documentation not found for endpoint: ${endpointId}`, }, ], isError: true, }; } return { content: [ { type: 'text', text: JSON.stringify(docPage, null, 2), }, ], }; }
- src/handlers/docs-handlers.ts:29-42 (registration)Registers the get_endpoint_docs tool with name, description, and input schema requiring endpointId.{ name: 'get_endpoint_docs', description: 'Get documentation for a specific endpoint', inputSchema: { type: 'object', properties: { endpointId: { type: 'string', description: 'The ID of the endpoint', }, }, required: ['endpointId'], }, },
- src/handlers/docs-handlers.ts:29-42 (schema)Defines the input schema for get_endpoint_docs tool.{ name: 'get_endpoint_docs', description: 'Get documentation for a specific endpoint', inputSchema: { type: 'object', properties: { endpointId: { type: 'string', description: 'The ID of the endpoint', }, }, required: ['endpointId'], }, },
- src/services/docs-manager.ts:59-62 (helper)Helper method in DocsManager that fetches endpoint docs by mapping endpointId to /endpoints/{endpointId} path.async getEndpointDocs(endpointId: string): Promise<DocPage | null> { // Convention: endpoint docs are at /endpoints/{endpointId} return this.getDocPage(`/endpoints/${endpointId}`); }