Skip to main content
Glama

Change a stay's rate

change_stay_rate

Changes a stay's nightly rate or rate plan for its nights not yet posted. Send nightly_rate (every night), nights (each night's rate), or rate_plan alone (priced by that plan). First call without confirm: a preview, nothing changes; then call again with the same values, confirm true and preview_id. Not for an Expedia stay. Owner only. Needs the owner's sign-in.

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": {
      "confirmation": "<confirmation>"
    },
    "name": "change_stay_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nightsNo
reasonNoWhy, in the owner's words
confirmNotrue to make the change shown in the preview
rate_planNoRate plan code, e.g. DIR25
preview_idNopreview_id from the preview
confirmationYesThe stay's confirmation number
nightly_rateNoDollars a night, for every night of the stay

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the generic safety profile (readOnlyHint=false, destructiveHint=false); the description adds the non-obvious traits an agent actually needs: the first call is a no-op preview, the second call with the same values commits, posted nights are untouched, and an owner sign-in is required (auth prerequisite). This goes well beyond what the structured fields disclose.

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?

Five short sentences, each carrying a distinct load: what changes, how to specify the rate, the two-step protocol, the platform exclusion, and the permission requirement. Front-loaded with the operation and scope, with no filler or restatement of the name.

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 7-parameter mutation with no output schema, the description covers the risky parts well: preview/commit sequencing, scope limits, auth, and platform exclusion. It omits how the stay itself is identified (the required confirmation number) and the optional free-text reason, but both are documented in the schema, so the omission is minor.

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?

Schema coverage is 86%, so the baseline is 3, but the description adds real semantic value by explaining the mutual exclusivity and coverage of the three rate inputs (per-stay vs per-night vs plan-derived) and how confirm/preview_id pair with the preview call. It does not explain the optional 'reason' field or restate the required stay confirmation number, leaving a small gap.

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 ('Changes a stay's nightly rate or rate plan') and immediately bounds the scope to 'nights not yet posted', which distinguishes it from a general stay-mutation sibling like 'stay'. An agent knows exactly what record field is being affected 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 Guidelines5/5

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

Gives explicit mutually exclusive input modes ('Send nightly_rate (every night), nights (each night's rate), or rate_plan alone'), the exact two-step invocation sequence (preview first, then same values + confirm true + preview_id), and explicit exclusions ('Not for an Expedia stay. Owner only.'). This is when/when-not guidance with no inference required.

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.

Resources