Skip to main content
Glama

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

NameRequiredDescriptionDefault
dateYesTravel date (YYYY-MM-DD)
destinationYesDestination point
originYesStarting point

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "date": { "description": "Travel date (YYYY-MM-DD)", "type": "string" }, "destination": { "description": "Destination point", "type": "string" }, "origin": { "description": "Starting point", "type": "string" } }, "required": [ "origin", "destination", "date" ], "type": "object" }

Implementation Reference

  • 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}`, }, ], }; }
  • 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), },

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GongRzhe/TRAVEL-PLANNER-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server