Skip to main content
Glama

create_itinerary

Generate personalized travel itineraries by inputting origin, destination, dates, budget, and preferences to plan trips efficiently.

Instructions

Creates a personalized travel itinerary based on user preferences

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
budgetNoBudget in USD
destinationYesDestination location
endDateYesEnd date (YYYY-MM-DD)
originYesStarting location
preferencesNoTravel preferences
startDateYesStart date (YYYY-MM-DD)

Implementation Reference

  • index.ts:97-110 (handler)
    Handler for the create_itinerary tool: validates input using CreateItinerarySchema and returns a mock text response with itinerary details.
    case "create_itinerary": { const validatedArgs = CreateItinerarySchema.parse(args); return { content: [ { type: "text", text: `Created itinerary from ${validatedArgs.origin} to ${validatedArgs.destination}\n` + `Dates: ${validatedArgs.startDate} to ${validatedArgs.endDate}\n` + `Budget: ${validatedArgs.budget || "Not specified"}\n` + `Preferences: ${validatedArgs.preferences?.join(", ") || "None specified"}`, }, ], }; }
  • Zod schema defining the input structure for the create_itinerary tool.
    const CreateItinerarySchema = z.object({ origin: z.string().describe("Starting location"), destination: z.string().describe("Destination location"), startDate: z.string().describe("Start date (YYYY-MM-DD)"), endDate: z.string().describe("End date (YYYY-MM-DD)"), budget: z.number().optional().describe("Budget in USD"), preferences: z.array(z.string()).optional().describe("Travel preferences"), });
  • index.ts:64-68 (registration)
    Registration of the create_itinerary tool in the ListTools response, including name, description, and input schema.
    { name: "create_itinerary", description: "Creates a personalized travel itinerary based on user preferences", inputSchema: zodToJsonSchema(CreateItinerarySchema), },

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