Skip to main content
Glama

Plan a multi-stop trip

plan_trip
Read-onlyIdempotent

Use this when the user plans a trip with several stops. Returns hotels for each stay in travel order (e.g. Lisbon 4 nights, Porto 3, Madrid 5): the best match for each stop by the OKstays Comfort Score (or the travel style's score), alternatives, the stay dates and an indicative total. Each hotel link opens its OKstays page with the stop's dates, so its Book Now button books those nights. Agree the stops and nights with the user first; list_cities shows which destinations of a country we cover. Read-only, no sign-in.

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": {
      "stops": "<stops>"
    },
    "name": "plan_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoFilters every hotel must score 8+ on, as in search_hotels.
stopsYesThe trip's stops in order.
adultsNoGuests per room (default 2).
personaNoTravel style for every stop: digital-nomad, deep-sleep, avoid-crowds, romantic, family, business, solo-safe, luxury, budget-comfort, long-stays.
max_priceNoMaximum indicative price per night in USD.
min_scoreNoMinimum Comfort Score (0-10).
start_dateNoCheck-in date of the first stop, YYYY-MM-DD; each stop starts when the one before ends. Without it, no dates are set.
alternativesNoOther options per stop (default 2).
property_typeNoproperty_type: hotels (default), apartments, guest-houses, hostels or any. hotels includes resorts, riads and ryokans; apartments includes aparthotels, holiday homes, villas and chalets; guest-houses includes B&Bs and homestays; any adds every kind, boats and campsites too. The long-stays persona defaults to any.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / property_type / description
      Previous value: -"property_type: hotels (default), apartments, hostels or any. hotels includes guest houses, B&Bs, aparthotels and resorts; apartments includes holiday homes, villas and homestays; any adds every kind, boats and campsites too. The long-stays persona defaults to any."New value: +"property_type: hotels (default), apartments, guest-houses, hostels or any. hotels includes resorts, riads and ryokans; apartments includes aparthotels, holiday homes, villas and chalets; guest-houses includes B&Bs and homestays; any adds every kind, boats and campsites too. The long-stays persona defaults to any."
    • changedInput schema / properties / property_type / enum
      Previous value: -[
      -  "hotels",
      -  "apartments",
      -  "hostels",
      -  "any"
      -]New value: +[
      +  "hotels",
      +  "apartments",
      +  "guest-houses",
      +  "hostels",
      +  "any"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / property_type
      Added value: +{
      +  "description": "property_type: hotels (default), apartments, hostels or any. hotels includes guest houses, B&Bs, aparthotels and resorts; apartments includes holiday homes, villas and homestays; any adds every kind, boats and campsites too. The long-stays persona defaults to any.",
      +  "enum": [
      +    "hotels",
      +    "apartments",
      +    "hostels",
      +    "any"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / persona / description
      Previous value: -"Travel style for every stop: digital-nomad, deep-sleep, avoid-crowds, romantic, family, business, solo-safe, luxury, budget-comfort."New value: +"Travel style for every stop: digital-nomad, deep-sleep, avoid-crowds, romantic, family, business, solo-safe, luxury, budget-comfort, long-stays."
  4. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely useful behavior: the exact return payload (best match, alternatives, stay dates, indicative total) and the deep-link semantics where the hotel link carries the stop's dates so Book Now books those nights. 'No sign-in' adds auth context beyond the annotations, though nothing is said about behavior at limits (e.g. more than 8 stops) or partial failures.

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

Conciseness4/5

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

Front-loaded with the trigger condition, then the return shape, then prerequisites, so an agent can stop reading early and still act. It is dense but nearly every clause carries information; only 'Read-only' partially restates the annotations, offset by the added 'no sign-in'.

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

Completeness5/5

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

For a 9-parameter, no-output-schema tool the description supplies exactly what the schema cannot: what comes back per stop, in what order, and how the returned links behave at booking time. Trigger, prerequisites, scoring rule, and city-coverage pointer are all present, leaving nothing an agent needs before calling it.

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?

With 100% schema coverage the baseline is 3, and the description earns above that by explaining the ordering semantics of stops concretely and by tying the per-stop hotel choice to min_score/persona scores and to the alternatives parameter ('alternatives' is what fills the other options). It still doesn't clarify how start_date rolls through stops beyond 'each stop starts when the one before ends', which the schema already states.

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

Purpose5/5

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

States a specific verb and resource (plan a multi-stop trip, returning hotels per stop in travel order) and illustrates the shape with a concrete 'Lisbon 4 nights, Porto 3, Madrid 5' example. The multi-stop scope plus the ranking rule (Comfort Score or travel-style score) makes it clearly distinct from the flat search_hotels sibling.

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?

Gives an explicit entry condition ('when the user plans a trip with several stops') and a prerequisite ('agree the stops and nights with the user first'). It also redirects to list_cities for destination coverage, but never states the counterpart case (a single-city search should use search_hotels), so the exclusion is only implied by 'several stops'.

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.