Skip to main content
Glama

Delete a trip

delete_trip
DestructiveIdempotent

Permanently delete a trip and every booking on it. There is no undo. Only the trip's owner can do this. Called without confirm it deletes nothing and reports what would be lost; show that to the traveler, and only call again with confirm=true once they have agreed in plain words.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNotrue only after the traveler has agreed to the deletion.
trip_idYesThe trip's id, from list_trips.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation by explaining permanent deletion with no undo, cascade to all bookings, owner-only authorization, and the two-phase confirm behavior where confirm=false only reports what would be lost. This is rich, actionable behavioral context.

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 sentences with no filler. Core action and consequence are front-loaded, followed by authorization and the confirm workflow. Every sentence earns its place.

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?

Complete for a destructive two-parameter tool with no output schema: effect, consequences, authorization, and the required interaction protocol are all specified. An agent has everything needed to decide and invoke it correctly.

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 adds real semantic value to confirm: it clarifies that confirm=false is a dry-run report and confirm=true is the actual deletion after traveler consent, which the schema only hints at.

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?

The description states a specific verb and resource: permanently delete a trip and cascade to every booking on it. This clearly distinguishes it from the sibling delete_booking, which removes only a single booking, leaving no ambiguity about scope.

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?

Provides strong operational context: only the trip's owner can call it, there is no undo, and confirm must be true only after explicit traveler agreement. It does not explicitly name alternatives (e.g., use delete_booking for a single booking), so some exclusion guidance is missing.

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