Skip to main content
Glama

Cancel a hotel booking

cancel_booking
Destructive

Cancela uma reserva. Se ainda estiver dentro do prazo gratis de uma tarifa reembolsavel, cancela e estorna automaticamente. Se estiver fora do prazo (ou for tarifa nao reembolsavel), a resposta vem com bloqueado: true — nesse caso avise o hospede que o cancelamento com multa precisa ser tratado manualmente (support@besthotels4.me), NAO insista tentando de novo. language: o da conversa ('en', 'pt' ou 'es') para as mensagens de erro. PASSEIO ou TRASLADO (order_id atv_...): nao cancela aqui — o cancelamento e MANUAL pela equipe; a resposta traz bloqueado: true e a orientacao (support@besthotels4.me).

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": {
      "token": "<token>",
      "order_id": "<order_id>"
    },
    "name": "cancel_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
languageNo
order_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description adds the behavior that matters: automatic cancellation plus refund when within the free window, a machine-readable `bloqueado: true` response for blocked cases, and an explicit no-retry instruction. It also discloses the manual escalation channel and that activity/transfer orders are never handled here.

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-loads the core action, then the blocked-case path, then the parameter note, then the activity/transfer exception — a logical escalation of detail. Slightly dense and the email address is repeated twice, but every sentence carries operational information.

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 destructive, non-idempotent mutation with no output schema, the description covers the success path (auto cancel + refund), the failure response shape (`bloqueado: true`), the required human escalation, and the language parameter. Nothing an agent needs to act correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the load. It defines `language` as the conversation language with the concrete values ('en', 'pt', 'es') used for error messages, and explains that `order_id` with an atv_ prefix means an activity/transfer order that cannot be cancelled here. Only `token` is left unexplained, hence a 4 rather than 5.

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?

States a specific verb and resource ("Cancela uma reserva") and immediately scopes what it does NOT handle: PASSEIO/TRASLADO orders (order_id atv_...) are cancelled manually by the team. An agent can distinguish this tool from activity/transfer flows without opening a schema.

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?

Gives explicit when-to-use (inside the free-cancellation window of a refundable rate) and when-not (past deadline or non-refundable), plus the exact fallback: tell the guest the penalty cancellation must be handled manually at support@besthotels4.me and do NOT retry. The activity/transfer exclusion is also stated with the order_id prefix that triggers 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