Skip to main content
Glama

Zestli

Answer Package Part Cancellation

answer_package_part_cancellation

Answer the choice Zestli offers after an operator cancelled part of a booking: its part of a package, or some nights of a stay (scope 'stay'; cancelled_nights and kept_nights are local dates). get_booking_status lists it in package_choices. Call with confirm=false to read both outcomes: keep_rest keeps the other parts or nights booked and refunds what was cancelled (keep_rest_refund_minor); refund_all cancels the whole booking and refunds everything (refund_everything_minor). Tell the user both, and the answer_by deadline (no answer by then refunds everything). Then, with the user's explicit choice, call again with confirm=true, the choice's cancellation_id, the answer and a new request_id; retrying with the same request_id and answer is safe and answers the same choice again, changing nothing. One answer per choice. The refund then moves within about a minute; its refund_state here and in get_booking_status says whether it has settled.

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": {
      "request": "<request>"
    },
    "name": "answer_package_part_cancellation"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesInput for answer_package_part_cancellation.

Output Schema

NameRequiredDescriptionDefault
choicesNo
messageNo
recordedNo
booking_idYes
error_codeNo
read_scopeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With annotations already declaring readOnlyHint=false, destructiveHint=false and openWorldHint=true, the description adds substantial context the annotations cannot: nothing changes on confirm=false, the answer_by deadline auto-refunds everything if missed, refunds settle in about a minute and are tracked via refund_state, and one answer is permitted per choice. The retry-safety statement ('same request_id and answer is safe ... changing nothing') sits in mild tension with idempotentHint=false, but reads as a conditional request_id-based idempotency rather than an outright contradiction of the tool-level hint.

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 purpose, then the preview-then-confirm workflow, then side effects and timing; every clause carries information an agent needs to call it correctly. It is a dense single paragraph, and splitting the preview/confirm sequence and the deadline/refund behavior into separate sentences would improve scanability without losing content.

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?

This is a high-complexity, nested-parameter, irreversible-ish decision tool, and the description covers the parts an output schema cannot: the two-step confirmation protocol, the deadline consequence, retry safety, and the meaning of both outcomes. Return values are backed by an output schema, so the brief mention of refund_state is sufficient rather than a gap.

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 coverage is 100%, so the baseline is 3; the description still earns credit by explaining what the enum values actually mean operationally (keep_rest keeps the other parts/nights and refunds only the cancelled portion via keep_rest_refund_minor; refund_all cancels and refunds everything via refund_everything_minor) and by framing request_id as a new UUID whose reuse makes retries safe. It does not add much about booking_id beyond the schema's reference-format detail, keeping it below a 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 ('Answer') and a precisely bounded resource: the choice Zestli offers after an operator cancels part of a package or some nights of a stay. It even disambiguates the two shapes (package part vs. cancelled nights) and names the sibling that surfaces the same choice (get_booking_status package_choices), so the agent can place it against alternatives immediately.

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 an explicit two-step protocol: call with confirm=false to read both outcomes, tell the user both plus the answer_by deadline, then call again with confirm=true once the user has made an explicit choice. It names where cancellation_id comes from (this tool's preview or get_booking_status) and states the one-answer-per-choice limit, leaving no sequencing to inference.

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