Skip to main content
Glama

Prepare a booking link

prepare_booking
Read-only

Check that a stay is free for the given dates and guests, and return the total price (cleaning included), the cancellation policy and a direct booking link with dates and guests already filled in. Give the link to the traveller: they confirm and pay securely on OkeyStay. Never ask the traveller for card details in the chat.

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": {
      "slug": "<slug>",
      "checkIn": "<checkIn>",
      "checkOut": "<checkOut>",
      "guests": "<guests>"
    },
    "name": "prepare_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
guestsYes
localeNoLanguage of the texts: es or enen
checkInYesYYYY-MM-DD
checkOutYesYYYY-MM-DD

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?

readOnlyHint=true is consistent with the text: this prepares a link and never confirms or charges anything, and the description makes the payment handoff explicit. The security constraint ('never ask the traveller for card details') is genuinely useful context beyond the annotations. It does not say whether the quoted price or the link holds the dates or expires, which is the main behavior left unexplained.

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?

Three short sentences, front-loaded with the operation and its outputs, followed by the action to take and the safety constraint. Every sentence carries distinct information with no repetition of the schema or title.

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?

With no output schema, the description correctly enumerates what comes back — price including cleaning, cancellation policy, prefilled link — which is the essential thing for this tool. It is silent on the failure path (what is returned when dates are unavailable or the guest count exceeds the maximum), which is a real gap for a single-annotation tool.

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 60%: checkIn, checkOut and locale are documented in the schema, but slug and guests are not, and the description only says 'given dates and guests' without clarifying what the slug identifies or the guest limit. With coverage in the middle band, the description neither compensates for the undocumented slug nor adds much beyond the schema.

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?

The description uses a specific verb pair and resource: it checks availability for dates/guests and returns price, cancellation policy and a prefilled booking link. That output bundle implicitly separates it from get_availability, but the overlapping sibling is never named, so the agent must infer the split rather than being told directly.

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?

It gives clear downstream guidance: hand the link to the traveller, who confirms and pays on OkeyStay, and never request card details in chat. What is missing is the routing rule — when to reach for this instead of get_availability, and whether this should be called before or after search_stays/get_stay.

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