Skip to main content
Glama

Build a jet lag plan

plan_trip
Read-onlyIdempotent

Builds a day-by-day jet lag plan for a trip: when to sleep, when to seek and avoid bright light, caffeine cutoffs, meal timing, melatonin where the traveler uses it, from the days before departure through the week after landing. Give the flights with local times at each airport; connections are separate flights. Returns an honest expectation (direction, shift, how many days the plan targets, what unaided adjustment typically takes) and the plan. Use whenever someone asks how to handle jet lag for a specific flight or trip, what to do on the plane, or when to sleep after landing.

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

Input Schema

NameRequiredDescriptionDefault
flightsYesThe flights in order. Connections are separate entries.
travelerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine behavioral context: the plan spans days before departure through the week after landing, connections must be submitted as separate flights, and the response includes an "honest expectation" with direction, shift, target days, and typical unaided adjustment time. It also discloses the melatonin boundary ("where the traveler uses it"), which matters behaviorally but is echoed in the schema.

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?

Three sentences, front-loaded with the verb and deliverable, then input requirements, then usage triggers. The first sentence is long but its enumeration is informative rather than padding. Minor redundancy with the schema on local times and connections.

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?

There is no output schema, so the description correctly carries the return-value burden by describing both the plan and the expectation summary. Nested traveler parameters are richly documented in the schema, and the flight-entry requirement is stated. Only the semantics of travel-effort tradeoffs could use a bit more description-side framing.

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 coverage is reported at 50%, and the schema itself documents nearly every property in detail (IATA-or-city airports, YYYY-MM-DDTHH:mm local times, effort enum semantics, melatonin defaulting by home market). The description restates rather than extends this, repeating "local times at each airport" and "connections are separate flights," and says nothing extra about the traveler fields such as effort or chronotype. Baseline 3 for heavy schema lifting.

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?

The description opens with a specific verb and artifact: "Builds a day-by-day jet lag plan for a trip," then enumerates the plan's contents (sleep, light seeking/avoidance, caffeine cutoffs, meal timing, melatonin) and its time horizon. It implicitly separates itself from explain_jet_lag by requiring concrete flight data ("for a specific flight or trip," "Give the flights"), so an agent can route correctly without opening the schema.

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?

It gives explicit invocation triggers: someone asking how to handle jet lag for a specific flight or trip, what to do on the plane, or when to sleep after landing. What it lacks is a negative case or a named alternative for general/educational jet lag questions, which is where explain_jet_lag would be the right call.

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