get_satellite_tle
Retrieve Two-Line Element (TLE) data for a satellite using its NORAD ID. This tool enables precise satellite tracking and orbital predictions by accessing up-to-date TLE information from the N2YO Satellite Tracker MCP Server.
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)The core handler function that validates the NORAD ID, fetches TLE data from the N2YO client, and returns it as JSON.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)Registration of the 'get_satellite_tle' tool in the getTools() method, including name, description, and input schema.{ 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 specifying the required 'noradId' parameter as a string.inputSchema: { type: "object", properties: { noradId: { type: "string", description: "NORAD catalog number", }, }, required: ["noradId"], },
- src/server.ts:438-439 (handler)Dispatch case in callTool method that routes the tool call to the getSatelliteTle handler.case "get_satellite_tle": return await this.getSatelliteTle(args.noradId);