Skip to main content
Glama

Got a Plan Trip Planner

Save hotel options for a stop

save_stay_options
Idempotent

Saves one to five hotels or other places to stay for one stop of a trip, identified by stay_key from the trip's stays, so the traveller can compare them in the planner as cards and pick one there: each with its name, a Booking.com link to that place, and what is known of its stars, review score, price for the stay and meals. Use it after searching a hotel connector for the stop's dates, best fit first. New options replace the ones saved before for that stop. It does not choose one; the traveller does, or choose_stay saves the one they name.

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>",
      "stay_key": "<stay_key>",
      "options": "<options>"
    },
    "name": "save_stay_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsYes
trip_idYes
stay_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, idempotent write; the description adds the critical replacement semantics — new options replace those saved before for that stop — which goes beyond the annotation hints. It also describes the downstream effect (comparable cards in the planner). It omits error/validation behavior, e.g. what happens with an invalid stay_key or unknown trip_id.

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?

Single dense paragraph, front-loaded with the action and cardinality, followed by where it lands and the sibling contrast. A few clauses (the planner-cards framing) could be tightened, but nothing is truly wasted.

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 write tool with no output schema, the description covers what is stored, replacement behavior, and replacement target lifetime (per stop), which is what an agent needs. It stops short of stating failure modes or whether preconditions like an existing trip/stay entry are enforced.

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

Parameters4/5

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

Top-level schema coverage is 0%, so the description must compensate. It does: stay_key is defined as coming from the trip's stays, and options is explained as one to five entries each carrying name, a Booking.com link, stars, review score, price and meals. Only trip_id is left unelaborated, which is inferable from context.

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 with scope bounds: saves one to five places to stay for one stop, keyed by stay_key, and says where they surface (planner cards). It explicitly distinguishes itself from choose_stay, which is named as the different action.

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

Usage Guidelines5/5

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

Gives a precondition (use it after searching a hotel connector for the stop's dates, best fit first) and an explicit exclusion (it does not choose one; the traveller does, or choose_stay saves the named one). An agent has both the when and the when-not.

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.