Skip to main content
Glama

Validate Itinerary

validate_itinerary
Read-onlyIdempotent

Checks whether a day-by-day itinerary works: locates each stop, computes travel time between consecutive stops by walking, transit or taxi, and flags overlaps, too-tight transfers, venues closed on that weekday or at that time (from published opening hours, with when they were last confirmed), public holidays, overloaded days, long walking, backtracking (with a better order), city-to-city moves with time ranges by rail, flight and road, and flight check-in buffers. Returns a status, issues by severity with evidence and a fix, and the computed timeline. Deterministic calculations, not opinions. Costs 2 credits (free on the paid plan).

Examples:

  • "Check this Lisbon day: Jerónimos 9:00, Belém Tower 10:00, Castelo de São Jorge 11:00, LX Factory 12:30, Gulbenkian 14:00"

  • "Is Paris Monday 3 May 2027 Louvre then Orsay then Sacré-Cœur realistic?"

  • "Validate this 10-day Portugal and Spain itinerary for a client using a wheelchair"

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": {
      "days": "<days>"
    },
    "name": "validate_itinerary"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYes
paceNoDefault 'moderate' (about 8 h of activities a day).
day_endNoDefault 22:00.
flightsNoCheck-in buffer: 120 min Schengen (default), 180 international.
mobilityNo
day_startNoDefault 09:00.
transportNoDefault 'mixed': walk up to max_walk_minutes, else transit.
start_dateNoDate of day 1 when days carry no dates.
destinationNoDefault city when days don't name one.
max_walk_minutesNoLongest walk the client accepts per leg (default 25; 10 with limited mobility).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description adds material context beyond them: deterministic calculations rather than subjective opinion, an explicit credit cost (2 credits, free on paid plan), and a preview of the return shape (status, issues by severity with evidence and a fix, computed timeline). It also qualifies the data source for opening hours ("with when they were last confirmed"), which tells the agent how much to trust that output.

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?

The core is a single front-loaded sentence with the verdict and the check list first, followed by return shape, determinism claim and cost, then examples. The main sentence is a long run-on enumeration, but each clause names a distinct check, so little is wasted; the pricing note at the end is short and load-bearing for agent decisions.

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 10-parameter tool with a nested days/items array and no output schema, the description supplies what the schema cannot: the return structure, severity model, cost, and the range of validations performed. It does not describe failure behavior for malformed days or how results are capped for large inputs, but nothing essential for constructing a correct call is missing.

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

Parameters3/5

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

Schema description coverage is 80%, so the schema itself documents nearly every parameter including defaults for pace, day_start, day_end, transport and max_walk_minutes. The description adds meaning only indirectly, via the walking/transit/taxi computation clause and the wheelchair example; it does not explain how pace thresholds, mobility, or the days/items nesting interact, so it neither compensates for nor enriches the schema much.

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?

Opens with a specific verb and resource ("Checks whether a day-by-day itinerary works") and then enumerates the actual checks performed: travel-time computation per mode, overlap and transfer detection, opening-hours and holiday conflicts, overload, backtracking, city-to-city legs and flight buffers. None of the sibling tools (compare_hotels, get_usage_balance, research_destination) could be confused with this, so differentiation is implicit but unambiguous.

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?

Three concrete worked examples make the intended call pattern and typical inputs clear, ranging from a single day to a multi-country trip with an accessibility constraint. What's missing is explicit when-not guidance or a stated boundary against the sibling tools; the agent must infer that this is the post-planning verification step rather than a research or comparison step.

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