Skip to main content
Glama

Get locked hotel rate

get_prebooks_prebookid
Read-onlyIdempotent

Fetch hotel prebooking details by prebookId, including final price, cancellation terms, room details, and checkout URL for payment and confirmation on MAQAMI.

Instructions

Retrieve a hotel prebook by its prebookId: final price, cancellation terms, room details and the checkoutUrl (https://book.maqami.co/booking?prebookId=...). Bookings are paid and confirmed only on MAQAMI's website, through the checkoutUrl.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prebookIdYes(Required) The unique identifier of the prebook session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.6
    • removedInput schema / properties / includeCreditBalance
      Removed value: -{
      -  "description": "Whether to include updated credit balance information with the prebook.",
      -  "type": "string"
      -}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: the result feeds into an external payment flow and booking is completed outside this tool via checkoutUrl.

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 tightly written sentences with the retrieval scope front-loaded and the payment caveat second. No filler, and every clause carries information an agent needs.

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?

With no output schema, the description compensates by enumerating the returned payload fields, and annotations handle the safety profile. For a single-parameter read this is complete enough to invoke correctly.

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 coverage is 100% for the single parameter, so the baseline is 3. The description restates the prebookId as an identifier and shows the URL template it populates, which adds marginal context but no new input semantics (e.g., format or validity rules).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Retrieve) and resource (hotel prebook) and enumerates what is returned (final price, cancellation terms, room details, checkoutUrl). It is clearly a read of an existing prebook, but it never names its natural sibling post_rates_prebook to disambiguate create-vs-read.

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?

It implies the tool is used to inspect a prebook obtained elsewhere and tells the agent that payment/confirmation happens only via checkoutUrl on MAQAMI's site, which is a useful workflow hint. However, it never states when to call this versus post_rates_prebook or when a prebook expires, so usage is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.