Skip to main content
Glama

propose_rebooking

DestructiveIdempotent

Propose moving a passenger group to another flight; the change executes only after a separate human approves the exact proposal.

Instructions

Propose moving a group of passengers to another flight. Needs a human approval.

The only tool that changes anything. It does not complete on the first call:
it answers with a request for approval, and executes only when a person other
than the signed-in user approves this exact proposal. You cannot approve it,
and changing any argument makes it a new proposal needing a new approval.
Calling it again with the same arguments is safe: the same proposal is
executed at most once and a repeat returns the original result.

It names a group, never a passenger, and returns counts only. It needs a
user's token carrying `flightops.rebooking.write`, so it is unavailable to a
service principal and over stdio. Spends no OpenSky credits.

Args:
    from_flight: Flight the passengers are booked on, e.g. SK1429.
    flight_date: Departure date of from_flight, YYYY-MM-DD.
    to_flight: Flight to move them to, e.g. SK1431.
    cohort: Which passengers: "tight_connections", "connecting",
        "needing_assistance" or "all".
    reason_code: Why: "weather", "technical", "crew", "atc", "late_inbound"
        or "other".
    passenger_count: How many passengers this moves, as reported by
        flight_passenger_impact for that cohort. The rebooking is refused if
        the number has changed since.

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": {
      "from_flight": "<from_flight>",
      "flight_date": "<flight_date>",
      "to_flight": "<to_flight>",
      "cohort": "<cohort>",
      "reason_code": "<reason_code>",
      "passenger_count": "<passenger_count>"
    },
    "name": "propose_rebooking"
  }
}

Input Schema

NameRequiredDescriptionDefault
cohortYes
to_flightYes
flight_dateYes
from_flightYes
reason_codeYes
passenger_countYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes far beyond the annotations: explains the two-phase approval flow, that the caller cannot self-approve, that changing any argument creates a new proposal, and that identical repeated calls execute at most once and return the original result. It also discloses the required scope (flightops.rebooking.write), that service principals and stdio are unsupported, and that no OpenSky credits are spent.

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

Conciseness5/5

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

Front-loaded with the one-line purpose and the approval requirement before the behavioral detail, then a clean Args section. Every sentence carries non-obvious information about safety, idempotency, or authorization; there is no filler.

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 destructive, open-world mutating tool, the definition covers authorization, approval protocol, idempotency, argument-sensitivity, and return shape ('returns counts only'); with an output schema present, no further return-value explanation is required.

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

Parameters5/5

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

Schema coverage is 0% and no enums are declared, so the description carries the full burden. It documents all six parameters, including the exact cohort and reason_code value sets, the YYYY-MM-DD date format, flight-number examples, and the requirement that passenger_count match the value reported by flight_passenger_impact or the call is refused.

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 (propose moving a group of passengers to another flight) and explicitly positions itself as 'The only tool that changes anything', which separates it from the read-only siblings like flight_passenger_impact and disruption_triage.

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 clear context for the workflow: it is the sole mutating tool, requires human approval, and the passenger_count must come from flight_passenger_impact for that cohort, which implies the intended call order. It stops short of explicitly naming when not to use it or naming alternatives for the read step, so it is strong but not exhaustive.

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