Skip to main content
Glama

Got a Plan Trip Planner

Set what matters in a hotel

set_hotel_prefs
Idempotent

Saves what the traveller wants from the places they stay on a trip, for every stop, or with place for one place only (a jungle lodge or a one-night stop that needs something else): a price level (budget: Budget, mid: Mid-range, luxury: Luxury) and what matters (clean: Very clean, location: Great location, breakfast: Breakfast, allinc: All-inclusive, pool: Pool, family: Family-friendly, quiet: Quiet, cancel: Free cancellation). The stops' Booking.com searches from hotel_link are filtered by them where Booking.com can, and hotel searches should look for all of them. The planner shows them as chips the traveller taps. Both fields replace what was saved; give price null and wants [] to clear. With place, same_as_trip true removes that place's own choices so it follows the trip again.

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

Input Schema

NameRequiredDescriptionDefault
placeNoA stop's place, as the trip names it, for choices that apply there only
priceNo
wantsNo
trip_idYes
same_as_tripNoWith place: drop that place's own choices

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already declare the safe-mutation profile (destructiveHint=false, idempotentHint=true), and the description adds the behavioral facts that matter most: both fields *replace* what was saved, null plus an empty array clears them, and `same_as_trip: true` deletes the place-level override so it inherits again. That overwrite-and-clear semantics is genuinely non-obvious for a setter and is exactly what an agent needs before calling it.

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?

The core purpose and the trip-versus-place distinction are front-loaded, and every sentence carries information. It is, however, a densely nested run-on with parentheticals inside parentheticals, which makes the enum glosses and clearing rules harder to scan than they need to be.

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 five-parameter mutation tool with no output schema, the definition covers everything an agent needs: scope selection, the exact accepted values, overwrite and clear behavior, and the downstream effect on Booking.com searches and planner chips. Nothing required to invoke it correctly is missing.

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?

With only 40% schema coverage across five parameters, the description compensates thoroughly: it glosses each `price` enum with a human label, lists all eight `wants` values with their meanings, and explains `place` (a stop's place as the trip names it) and `same_as_trip` beyond the terse schema line. The only parameter left implicit is `trip_id`, which is self-evident.

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 states a specific verb and resource ('Saves what the traveller wants from the places they stay') and immediately splits the two scopes: trip-wide defaults versus a single place via the `place` parameter. An agent can tell this apart from siblings like `hotel_link` or `choose_stay` because the description names exactly which settings it owns (price level and wants).

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 clear when-to-use context, including the discriminating condition for per-place overrides ('a jungle lodge or a one-night stop that needs something else') and the clearing recipe ('give price null and wants [] to clear'). What it lacks is any exclusion or comparison to sibling tools — `hotel_link` is referenced only as a downstream consumer, not as an alternative the agent might pick instead.

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.