Skip to main content
Glama

Got a Plan Trip Planner

Change nights at a stop

set_nights
Idempotent

Changes how many nights the traveller spends at one stop of a saved trip. The stop is counted from 0 in travel order; the dates of every later stop move with it.

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>",
      "stop": "<stop>",
      "nights": "<nights>"
    },
    "name": "set_nights"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopYesPosition of the stop, 0 for the first
nightsYes
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 already declare it is a non-read-only, idempotent, non-destructive mutation, so the base burden is low. The description adds genuinely new behavioral context by disclosing the cascading effect that 'the dates of every later stop move with it' and that stop is zero-indexed in travel order. It stops short of saying whether shifting later stops can invalidate existing bookings or what happens at boundary values.

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 with zero filler; the core change is front-loaded and the side effect follows immediately. Every clause carries information.

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 three-parameter mutation with full annotation coverage and no output schema, the description covers purpose, indexing convention, and the key downstream effect. What remains missing is error/edge behavior when a shift conflicts with existing bookings, which is a modest gap rather than a blocking one.

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?

Schema description coverage is only 33%: only 'stop' is documented, and the description largely restates that indexing in prose. It does implicitly clarify that 'nights' is per-stop rather than trip-wide, which adds some meaning, but trip_id and the nights bounds (0-60) remain unexplained in both places.

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 (changes) and resource (nights at one stop of a saved trip), which is cleanly distinct from sibling mutators like set_hotel_prefs and set_trip_fare. An agent can identify the operation and its scope 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 Guidelines3/5

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

Usage is only implied by the phrase 'a saved trip', which signals the trip must already exist, but there is no explicit when-to-use guidance or comparison against alternatives such as choosing a different stay or adjusting prefs. Adequate but leaves routing to inference.

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.