List Logflare endpoints
list_endpointsRetrieve all saved query endpoints for your Logflare account.
Instructions
List saved query endpoints for the account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:117-130 (registration)Registration of the 'list_endpoints' tool with the MCP server, including the handler that calls client.listEndpoints().
server.registerTool( 'list_endpoints', { title: 'List Logflare endpoints', description: 'List saved query endpoints for the account.', inputSchema: {}, }, async () => { try { return text(await client.listEndpoints()) } catch (err) { return errorText(err) } }, - src/index.ts:124-130 (handler)Handler function that executes when the tool is called; delegates to LogflareClient.listEndpoints().
async () => { try { return text(await client.listEndpoints()) } catch (err) { return errorText(err) } }, - src/index.ts:119-123 (schema)Schema/description metadata for the tool, with empty inputSchema (no parameters required).
{ title: 'List Logflare endpoints', description: 'List saved query endpoints for the account.', inputSchema: {}, }, - src/logflare.ts:96-98 (helper)Client helper method that makes an HTTP GET request to /api/endpoints to list saved query endpoints.
listEndpoints() { return this.request<{ data: unknown[] }>('/api/endpoints') }