Skip to main content
Glama

Plan a whole trip

plan_trip

Builds a full day-by-day trip with live prices in Indian rupees in the signed-in AlgoTrips account: flights from the home city (unless gettingAround is none), hotels, activities and transfers for each city, priced together, for the cities, start date, travellers and home city given. Activities and transfers are priced only as part of such a trip, together with its hotels. The kind of hotel (hotelStars) and what the travellers enjoy (interests) shape the hotels and activities picked. A field name the tool does not take is refused: nothing is built, and the answer names the right field. Returns a build id at once. The trip takes about 3 to 6 minutes, and AlgoTrips emails the person when it is ready (the price and the link), or if it could not build it, when it has their email (the answer says so). With any of the budget, the kind of hotel, pace, activities, getting around or (2 or more cities) the city order left out, nothing is built when choicesConfirmed is not true, or when it is true but these choices were not listed to this account through this assistant at least 15 seconds and at most 2 hours earlier (a build started uses that up): the answer lists those choices with their questions and defaults. Booking and payment happen on algotrips.com. Needs the person to be signed in to AlgoTrips.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cities": "<cities>",
      "adults": "<adults>",
      "homeCity": "<homeCity>"
    },
    "name": "plan_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
paceNoHow full each day is: relaxed, balanced or fast.
yearNoThe year of travel, with month.
monthNoThe month of travel (1 to 12), when the person has no exact day yet. With month + year and no startDate nothing is built: the answer suggests a start date (suggestedStartDate).
adultsYesAdults travelling (1 to 9).
citiesYesThe cities to stay in, in order (1 to 6).
homeCityYesThe city the travellers fly from and come back to.
budgetInrNoThe whole trip budget in Indian rupees, a whole number (₹4.5 lakh = 450000). Left out: a typical amount for this trip is used.
interestsNoWhat the travellers enjoy, the choices on the website: Culture, Food & Dining, Art & Museums, Beach, Nightlife, Shopping, History, Nature. Left out: a bit of everything.
startDateNoThe exact day the trip starts, YYYY-MM-DD. Needed to build: without it nothing is built.
hotelStarsNoThe kinds of hotel the person wants, the choices on the website: 1 = hostels, 2 = value for money, 3 = 3-star (mid-range), 4 = 4-star (comfortable), 5 = 5-star (luxury). The best rated hotel of these kinds is picked. When given, it is used instead of hotelStandard. Left out: no preference for a kind of hotel.
totalNightsNoNights for the whole trip, when some cities have no nights of their own (split between them).
childrenAgesNoEach child's age (0 to 17), at most 6 children.
activityStyleNomix (some tours, some on your own), self_guided (mostly on your own) or all_inclusive (guided tours).
gettingAroundNoHow the travellers get there and between cities, the choices on the website: auto (AlgoTrips picks a flight or road / rail for each hop), all (a flight on every hop that has one), edge (flights to the first city and home from the last, road or rail in between), none (no flights: hotels, activities and transfers only). Left out: auto.
hotelStandardNoHotel standard: budget, comfort or luxury.
keepCityOrderNotrue keeps the cities in the order given. false or left out lets AlgoTrips pick the best order for flights and getting around.
choicesConfirmedNotrue: the person has been shown these choices (in a needs_choices or needs_date answer) and chose the defaults for the ones left out: any of budgetInr, the kind of hotel (hotelStars or hotelStandard), pace, activityStyle, gettingAround and (2 or more cities) keepCityOrder left out gets its default. Counted only when each of those choices was listed to this account through this assistant at least 15 seconds and at most 2 hours earlier (a build started uses that up); otherwise the answer is needs_choices. false or left out: with any of them left out nothing is built, and the answer (status needs_choices) lists them with a question, the allowed values and the default for each.

Output Schema

NameRequiredDescriptionDefault
linkNo
citiesNo
statusYes
buildIdNo
choicesNoThe choices left out (status needs_choices, or needs_date when choices are left out too): for each, the input field, a question, the allowed values and the default used when it stays out.
messageYes
startDateNo
suggestionsNo
suggestedStartDateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / choicesConfirmed / description
      Previous value: -"true: any of budgetInr, the kind of hotel (hotelStars or hotelStandard), pace, activityStyle, gettingAround and (2 or more cities) keepCityOrder left out gets its default. false or left out: with any of them left out nothing is built, and the answer (status needs_choices) lists them with a question, the allowed values and the default for each."New value: +"true: the person has been shown these choices (in a needs_choices or needs_date answer) and chose the defaults for the ones left out: any of budgetInr, the kind of hotel (hotelStars or hotelStandard), pace, activityStyle, gettingAround and (2 or more cities) keepCityOrder left out gets its default. Counted only when each of those choices was listed to this account through this assistant at least 15 seconds and at most 2 hours earlier (a build started uses that up); otherwise the answer is needs_choices. false or left out: with any of them left out nothing is built, and the answer (status needs_choices) lists them with a question, the allowed values and the default for each."
    • changedOutput schema / properties / choices / description
      Previous value: -"The choices left out (status needs_choices): for each, the input field, a question, the allowed values and the default used when it stays out."New value: +"The choices left out (status needs_choices, or needs_date when choices are left out too): for each, the input field, a question, the allowed values and the default used when it stays out."
  2. First observed

TDQS

A4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well past the annotations: asynchronous build with immediate build id, 3-6 minute duration, email notification on success and on failure when the address is on file, external booking/payment on algotrips.com, and the unusual 15-second-to-2-hour window for counting earlier choice confirmations. The mutation and open-world behavior described is consistent with readOnlyHint=false and openWorldHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, but the body degenerates into very long run-on sentences, and the choicesConfirmed paragraph re-explains in prose what the schema already documents at length. Key facts (async, email, auth) compete with dense conditional clauses rather than being structured as bullets or short paragraphs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter, open-world, asynchronous mutation with an output schema, coverage is strong: auth, timing, failure modes, refunds/booking location, and the confirmation window are all addressed. The only real omission is any pointer to the sibling tool for checking build status, which the email-only fallback leaves partially unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the prose adds genuine semantics: hotelStars overrides hotelStandard, gettingAround=none excludes flights, totalNights is split across cities lacking their own nights, and interests/hotelStars shape which hotels and activities are chosen. It also explains that an unrecognized field is refused by name, which the schema's additionalProperties:{} does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: it builds a complete day-by-day trip (flights, hotels, activities, transfers) with live INR pricing in the signed-in account. It implicitly separates itself from standalone flight search by noting activities/transfers are priced only inside a trip, but it never names the sibling to use for polling build progress (trip_status).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Preconditions are spelled out in detail: sign-in required, startDate required to build, month+year without startDate only yields a suggested date, and omitted discretionary choices require choicesConfirmed=true. What is missing is routing guidance toward alternatives such as trip_status for checking an in-flight build, which is conspicuous for an async tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources