Skip to main content
Glama

Get Transparent Direct Rates

get_rate_details
Read-onlyIdempotent
Get the itemized direct-rate quote and cancellation policy for one specific villa (`unit_id`) and date range.

Fetches exact live pricing from the property owner's PMS including nightly base rate, subtotal,
cleaning fees, local tourist taxes, gross total in EUR, minimum-stay rule, and cancellation policy.

When to use:
    - Use after the traveler selects a specific `unit_id` from `search_properties` to present the full itemized price quote and cancellation terms before calling `create_hold`.
When NOT to use:
    - Do NOT use for broad destination search—use `search_properties` instead.
    - Do NOT use just to check whether dates are open without needing price itemization—use `check_availability` instead.

Args:
    unit_id:   The unit_id from search_properties results
    check_in:  Arrival date YYYY-MM-DD
    check_out: Departure date YYYY-MM-DD
    guests:    Number of guests

Returns:
    JSON object with `nights`, `currency`, itemized `breakdown` (`base_rate_per_night`, `subtotal`, `cleaning_fee`, `tax`), `gross_total`, `cancellation_policy`, and `min_stay_nights`.

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": {
      "unit_id": "<unit_id>",
      "check_in": "<check_in>",
      "check_out": "<check_out>",
      "guests": "<guests>"
    },
    "name": "get_rate_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
guestsYesTotal number of guests staying at the property.
unit_idYesUnique property unit identifier (`unit_id` returned by `search_properties`).
check_inYesArrival date in ISO 8601 format (YYYY-MM-DD).
check_outYesDeparture date in ISO 8601 format (YYYY-MM-DD).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / check_in / description
      Added value: +"Arrival date in ISO 8601 format (YYYY-MM-DD)."
    • addedInput schema / properties / check_out / description
      Added value: +"Departure date in ISO 8601 format (YYYY-MM-DD)."
    • addedInput schema / properties / guests / description
      Added value: +"Total number of guests staying at the property."
    • addedInput schema / properties / unit_id / description
      Added value: +"Unique property unit identifier (`unit_id` returned by `search_properties`)."
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered; the description adds the important context that pricing is fetched live from the property owner's PMS and quoted in EUR, which explains volatility. It stops short of noting rate-expiry windows or how long a quote remains valid before create_hold, which would matter for a live-quote tool.

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 sectioned layout (what / when / when-not / args / returns) is front-loaded and scannable, with the intent stated in the first sentence. The Args and Returns blocks largely restate the input schema and output schema, so a few lines do not earn their place, but the overall structure is clean.

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 read-only quote tool with full annotation coverage, complete parameter documentation and an output schema, nothing an agent needs in order to invoke it correctly is missing. The workflow anchoring against search_properties and create_hold is the remaining piece that makes it callable without guesswork.

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?

Schema coverage is 100%, so the schema already documents all four parameters and the baseline of 3 applies; the description matches that bar without contradicting it. It adds a small amount of provenance by tying unit_id back to search_properties results and restating the YYYY-MM-DD convention consistently.

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 opens with a specific verb+resource ('Get the itemized direct-rate quote and cancellation policy') scoped to one villa and date range, and enumerates the exact pricing components returned. It is immediately distinguishable from sibling tools like check_availability and search_properties.

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?

It gives an explicit 'When to use' anchoring the call to the workflow step after search_properties and before create_hold, plus two explicit 'When NOT to use' cases that each name the correct alternative tool. No inference is 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