Skip to main content
Glama
GongRzhe

Travel Planner MCP Server

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
NameRequiredDescriptionDefault
dateYesTravel date (YYYY-MM-DD)
destinationYesDestination point
originYesStarting point

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),
    },

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

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