Skip to main content
Glama

Check rate

check_rate
Read-onlyIdempotent

Re-check price and availability of an option right before booking.

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": {
      "rate_key": "<rate_key>"
    },
    "name": "check_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoLanguage the traveller writes in, ISO code (en, es, de, fr, it, pt, nl…). Names, rooms, rates and notes come back in that language.
rate_keyYesrate_key of an option returned by search_hotels (valid 30 minutes).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / language
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Language the traveller writes in, ISO code (en, es, de, fr, it, pt, nl…). Names, rooms, rates and notes come back in that language.",
      +  "title": "Language"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "title": "_checkDictOutput",
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / rate_key / description
      Added value: +"rate_key of an option returned by search_hotels (valid 30 minutes)."
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false, and destructiveHint=false, so safety and side-effect behavior are well covered. The description adds useful behavioral context by framing the call as a revalidation of price and availability, signaling that values may have changed since search; it does not reiterate the rate_key 30-minute validity, but the schema does.

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?

The definition is a single front-loaded sentence with no redundant wording. Every phrase earns its place by conveying the check action, the data checked, and the timing constraint.

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 simple read-only revalidation tool with rich annotations, a complete two-parameter schema, and an output schema, the description provides everything needed to call it correctly. Details about the rate_key's 30-minute validity and language behavior are already in the schema, so omitting them from the description is appropriate.

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 100%, and the schema itself explains rate_key provenance and the language parameter thoroughly. The description adds no additional parameter meaning beyond what the schema provides, so the baseline 3 is appropriate.

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 uses a specific verb, 'Re-check,' and a precise resource, 'price and availability of an option,' with temporal context 'right before booking.' This clearly distinguishes it from siblings like search_hotels, get_hotel, and book_hotel without requiring schema inspection.

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?

The phrase 'right before booking' gives a clear when-to-use condition and implies it follows search_hotels and precedes book_hotel. It does not explicitly name those alternatives or state when not to use it, but the temporal guidance is strong enough for correct 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.