Skip to main content
Glama

Hôtel Bonne Nuit - Labuan Bajo

Réserver une chambre (lien de paiement)

book_room

Crée une réservation NON PAYÉE (chambre bloquée 15 minutes) et renvoie un lien de paiement Midtrans (payment_url). Le prix est calculé par l'hôtel. Sans paiement sous 15 minutes, la réservation est annulée automatiquement. Annulation gratuite jusqu'à 5 jours avant l'arrivée, ensuite 50 % retenus (50 % remboursés), aucun remboursement en cas de non-présentation. Petit-déjeuner optionnel (breakfast=true). Données nécessaires : room_id d'une chambre disponible, dates, nom, email du client et acceptation de la politique d'annulation.

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": {
      "room_id": "<room_id>",
      "checkin": "<checkin>",
      "checkout": "<checkout>",
      "first_name": "<first_name>",
      "last_name": "<last_name>",
      "email": "<email>",
      "accept_cancellation_policy": "<accept_cancellation_policy>"
    },
    "name": "book_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesEmail du client (la confirmation y est envoyée)
notesNoRemarque facultative (heure d'arrivée, demande spéciale)
phoneNoTéléphone du client avec indicatif pays (WhatsApp si possible)
adultsNo
checkinYesDate d'arrivée, YYYY-MM-DD
room_idYesIdentifiant (room_id) de la chambre disponible
checkoutYesDate de départ, YYYY-MM-DD
childrenNo
breakfastNotrue = petit-déjeuner inclus pour tous les occupants (75 000 IDR par personne et par nuit, enfant compris) ; le prix payé est alors total_price_with_breakfast
last_nameYesNom de famille du client
first_nameYesPrénom du client
accept_cancellation_policyYestrue uniquement si le client a accepté la politique d'annulation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / breakfast
      Added value: +{
      +  "default": false,
      +  "description": "true = petit-déjeuner inclus pour tous les occupants (75 000 IDR par personne et par nuit, enfant compris) ; le prix payé est alors total_price_with_breakfast",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / room_id / description
      Previous value: -"room_id renvoyé par check_availability"New value: +"Identifiant (room_id) de la chambre disponible"
  3. Changed2 schema fields changed
    • addedInput schema / properties / first_name / description
      Added value: +"Prénom du client"
    • addedInput schema / properties / last_name / description
      Added value: +"Nom de famille du client"
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the unpaid hold window, automatic cancellation on non-payment, refund tiers (free until 5 days out, 50% after, none on no-show), and optional breakfast pricing. Since idempotentHint is false, it should have warned that retries can create duplicate bookings, which is the one notable behavioral gap.

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?

Front-loaded with the core action and return value, then policy details. It is dense with policy text but each sentence carries information an agent needs before booking; the cancellation-policy paragraph is slightly over-explained given accept_cancellation_policy already exists as a parameter.

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 rightly names the key return value (payment_url) and the temporal guarantee behind it. For a seven-required-parameter mutation tool this covers what an agent needs to call correctly; finer details like total_price fields are left to the schema.

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 83%, so the schema already documents nearly every field including breakfast pricing. The description mainly restates the required parameter list and the room_id/availability constraint rather than adding new semantics such as date-order rules or the phone/notes conventions.

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?

Opens with a specific verb and resource: creates an UNPAID reservation, holds the room 15 minutes, and returns a Midtrans payment_url. This is clearly distinct from read-only siblings such as check_availability and list_room_types, so an agent can route 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 Guidelines4/5

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

States the required input set and that room_id must come from an available room, implicitly steering the agent to check availability first, and flags that accept_cancellation_policy requires explicit customer consent. It stops short of naming check_availability as the prerequisite step or saying when not to use it.

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