get_transport_options
Retrieve available transportation options between specified origin and destination points for a given travel date using the Travel Planner MCP Server.
Instructions
Retrieves available transportation options between two points
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Travel date (YYYY-MM-DD) | |
| destination | Yes | Destination point | |
| origin | Yes | Starting point |
Implementation Reference
- index.ts:138-149 (handler)Handler for the 'get_transport_options' tool. Validates input using GetTransportOptionsSchema and returns a mock text response describing transport options between origin and destination on a given date.case "get_transport_options": { const validatedArgs = GetTransportOptionsSchema.parse(args); return { content: [ { type: "text", text: `Transport options from ${validatedArgs.origin} to ${validatedArgs.destination}\n` + `Date: ${validatedArgs.date}`, }, ], }; }
- index.ts:35-39 (schema)Zod schema defining the input parameters for the 'get_transport_options' tool: origin, destination, and date.const GetTransportOptionsSchema = z.object({ origin: z.string().describe("Starting point"), destination: z.string().describe("Destination point"), date: z.string().describe("Travel date (YYYY-MM-DD)"), });
- index.ts:79-83 (registration)Registration of the 'get_transport_options' tool in the listTools handler, including name, description, and input schema.{ name: "get_transport_options", description: "Retrieves available transportation options between two points", inputSchema: zodToJsonSchema(GetTransportOptionsSchema), },