Skip to main content
Glama

Got a Plan Trip Planner

Remove a chosen flight

clear_flight
Destructive

Removes the flight, or the ferry, bus or train, saved for one leg of a trip, so the leg shows as not chosen again. It does not cancel any booking.

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": {
      "trip_id": "<trip_id>",
      "leg_key": "<leg_key>"
    },
    "name": "clear_flight"
  }
}

Input Schema

NameRequiredDescriptionDefault
leg_keyYes
trip_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only give destructiveHint=true, which alone would suggest a dangerous write. The description usefully narrows that: it clears a selection rather than cancelling a booking, so the real-world blast radius is small and presumably reversible by re-choosing. It does not say what happens if no transport is currently saved (error vs. no-op), which is the remaining behavioral gap.

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?

Two tight sentences: the first defines the action and its effect, the second pre-empts the most likely misreading. Nothing is padded and the key disambiguation is front-loaded after the primary statement.

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

Completeness3/5

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

For a two-parameter destructive tool with no output schema, the description covers the action and its scope but leaves the identifier parameters and the no-op/error behavior undocumented. An agent can call it, but may guess at how to source leg_key.

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

Parameters2/5

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

Schema description coverage is 0% for both required parameters, so the description carries the burden — yet it never explains trip_id or leg_key, nor how to obtain a leg_key. Only an oblique hint ('saved for one leg of a trip') connects the two fields to their meaning, which is not enough for an opaque key parameter.

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 ('Removes') and a precisely scoped resource: the saved flight, ferry, bus or train for one leg of a trip. It also states the observable outcome — the leg shows as not chosen again — so an agent can distinguish it from booking-creation or route tools 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?

Use context is clear: clear a previously saved transport choice on a leg. The sentence 'It does not cancel any booking' implicitly excludes cancellation use cases, but no sibling alternative (e.g. a route or transport chooser) is named as the replacement path when the intent is to change rather than clear.

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.