get_satellite_tle
Retrieve Two-Line Element (TLE) data for satellite tracking using NORAD ID to obtain orbital parameters for position calculations.
Instructions
Get Two-Line Element (TLE) data for a satellite by NORAD ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noradId | Yes | NORAD catalog number |
Implementation Reference
- src/server.ts:878-891 (handler)Core handler function for the 'get_satellite_tle' tool. Validates NORAD ID, fetches TLE data via N2YO client, and returns formatted JSON response.private async getSatelliteTle(noradId: string): Promise<CallToolResult> { SatelliteValidator.validateNoradId(noradId); const tleData = await this.n2yoClient.getTle(noradId); return { content: [ { type: "text", text: JSON.stringify(tleData, null, 2), }, ], }; }
- src/server.ts:89-103 (registration)Tool registration in getTools() method, defining name, description, and input schema for 'get_satellite_tle'.{ name: "get_satellite_tle", description: "Get Two-Line Element (TLE) data for a satellite by NORAD ID", inputSchema: { type: "object", properties: { noradId: { type: "string", description: "NORAD catalog number", }, }, required: ["noradId"], }, },
- src/server.ts:93-102 (schema)Input schema definition for the tool, specifying noradId as required string parameter.inputSchema: { type: "object", properties: { noradId: { type: "string", description: "NORAD catalog number", }, }, required: ["noradId"], },
- src/server.ts:438-440 (handler)Dispatch case in callTool method that routes 'get_satellite_tle' calls to the specific handler.case "get_satellite_tle": return await this.getSatelliteTle(args.noradId);