Skip to main content
Glama

Cancel a reservation

uber_cancel_reservation
Destructive

Cancel a future Uber reservation by previewing the cancellation fee first, then confirming with the same reservation ID and token.

Instructions

Cancel a specific future reservation. Without confirm: preview the reservation and current cancellation fee. After approval: same id and confirm token. Changed terms require a new preview; cancellation remains available while booking is frozen. Never retry an unknown outcome without checking Uber.

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": {
      "id": "<id>"
    },
    "name": "uber_cancel_reservation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesReservation UUID to cancel
confirmNoThe preview's confirm_token, only after the person approved the fee

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.1
    • addedInput schema / properties / confirm / description
      Added value: +"The preview's confirm_token, only after the person approved the fee"
    • addedInput schema / properties / id / description
      Added value: +"Reservation UUID to cancel"
  2. Addedv0.4.1

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructive=true, idempotent=false and openWorld=true, and the description goes well past them: it discloses that an unconfirmed call returns a fee preview, that the confirm token is invalidated by changed terms, that cancellation still works while a booking is frozen, and that unknown outcomes must not be blindly retried. Those are exactly the mutation side effects and edge cases an agent cannot infer from annotations.

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?

Purpose is front-loaded and every sentence carries operational content; nothing is decorative. The telegraphic fragments ('After approval: same id and confirm token.') are dense but slightly compressed enough to need a second read.

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 two-parameter destructive tool with an output schema already covering return values, the description supplies the preview-then-confirm protocol, token staleness rule, frozen-booking edge case, and retry safety. Nothing an agent needs to invoke it correctly is missing.

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%, so both parameters are already documented in the schema, which sets the baseline at 3. The description does add real meaning about the confirm token's lifecycle (preview when absent, approval when present, re-preview if terms change, id must stay the same), but it adds no format or syntax detail beyond what the schema provides.

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 opening sentence gives a clear verb and resource ('Cancel a specific future reservation') and the qualifier 'future' narrows scope usefully. It implicitly separates itself from ride cancellation by naming reservation, though it never references the sibling uber_cancel_ride by name, so the differentiation relies on the reader noticing the noun.

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 a clear two-phase usage rule: call without confirm to preview the fee, call again with the confirm token only after the person approves. It also states a retry constraint ('Never retry an unknown outcome without checking Uber'). What it omits is routing guidance to alternatives such as uber_cancel_ride versus uber_cancel_reservation, but the reservation/ride distinction is inherent in the purpose sentence.

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