Skip to main content
Glama

Got a Plan Trip Planner

Mark a leg booked

mark_leg
Idempotent

Marks one leg of a trip (a flight, ferry or drive) as booked or not booked yet, with an optional short note such as a departure time or booking reference, and what was paid for it when that differs from the price saved (it counts in the trip's cost).

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>",
      "booked": "<booked>"
    },
    "name": "mark_leg"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
priceNoWhat was paid, total for all travellers
bookedYes
leg_keyYes
trip_idYes
currencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare write, idempotent, non-destructive, and non-open-world behavior. The description adds useful behavioral context: it toggles booked state, note is optional, and paid price affects the trip's cost. It omits auth requirements, response behavior, and whether unbooking clears note or price, so it is not fully complete.

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?

A single front-loaded sentence of about 45 words; there is no filler or repetition. The parentheticals and multiple clauses make it slightly dense, but every clause conveys useful purpose or parameter context.

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 six-parameter write tool with no output schema, the core action and key optional fields are covered. Gaps remain around currency, leg_key/trip_id identification, and whether unbooking clears note or price, which matters for correct invocation.

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?

With only 17% schema description coverage, the description must carry parameter meaning. It explains note's purpose with examples and price as what was paid when different from the saved price, and confirms booked is a boolean state. It leaves currency, trip_id, and leg_key unexplained, so it only partially compensates.

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

Purpose4/5

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

States a specific verb ('Marks') and resource ('one leg of a trip'), names leg types and the target state 'booked or not booked yet'. It does not explicitly contrast with sibling tools such as add_booked_flight or choose_transport, so sibling differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or when-not-to-use guidance is given; it never tells an agent to choose this over add_booked_flight or other sibling tools. The only conditional phrase ('when that differs from the price saved') scopes the price parameter, not tool selection.

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.