get_llms_txt
Retrieve the GeoTap API discovery document to access a structured overview of all available data sources and capabilities for environmental data from 80+ US federal sources.
Instructions
Get the GeoTap API discovery document. Returns a structured description of all data sources and capabilities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:274-291 (handler)The handler + registration for the 'get_llms_txt' meta-tool. Reads the llms.txt file from disk and returns its content, or returns an error message if the file is missing.
// ── Tool: get_llms_txt (meta) ──────────────────────────────────────── server.tool( 'get_llms_txt', 'Get the GeoTap API discovery document. Returns a structured description of all data sources and capabilities.', {}, async () => { try { const content = readFileSync(join(__dirname, 'llms.txt'), 'utf-8'); return { content: [{ type: 'text', text: content }] }; } catch { return { content: [{ type: 'text', text: 'llms.txt not found. Visit https://geotapdata.com/llms.txt for documentation.' }], isError: true }; } } ); - src/index.js:274-291 (registration)Tool registration via server.tool() with name 'get_llms_txt', description, empty schema (no inputs), and async handler. The tool is registered on an McpServer instance imported from @modelcontextprotocol/sdk/server/mcp.js.
// ── Tool: get_llms_txt (meta) ──────────────────────────────────────── server.tool( 'get_llms_txt', 'Get the GeoTap API discovery document. Returns a structured description of all data sources and capabilities.', {}, async () => { try { const content = readFileSync(join(__dirname, 'llms.txt'), 'utf-8'); return { content: [{ type: 'text', text: content }] }; } catch { return { content: [{ type: 'text', text: 'llms.txt not found. Visit https://geotapdata.com/llms.txt for documentation.' }], isError: true }; } } ); - src/index.js:278-279 (schema)Input schema for the tool — an empty object {} meaning the tool accepts no parameters.
'Get the GeoTap API discovery document. Returns a structured description of all data sources and capabilities.', {}, - src/index.js:7-7 (helper)The helper utilities used by the handler: readFileSync from 'fs' and path utilities (dirname, join) for resolving the llms.txt file path relative to __dirname.
import { readFileSync } from 'fs';