Skip to main content
Glama

Delete Trip Item

delete_trip_item
DestructiveIdempotent

Permanently delete part of a trip: a variant, a destination, a destination option, or an event. Use only when the user rejects something outright — if they might still want it later, deselect the option or toggle the event instead. Deleting a variant or a destination also deletes everything inside it, so confirm with the user first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoWhich kind of option is being deleted. Required when target is 'option'.
targetYesWhat to delete.
tripIdYesId of the trip, as returned by list_trips or get_trip.
confirmNoMust be true — confirms deleting the ENTIRE variant and everything inside it (all destinations, options and events). Ask the user before setting it.
eventKeyNoKey of the event on the variant, from get_trip. Required when target is 'event'.
optionKeyNoKey of the accommodation / transport / getting-around option, from get_trip. Same value that select_destination_option calls optionId — the API names it inconsistently. Required when target is 'option'.
variantIdYesId of the trip variant (an alternative version of the trip), from get_trip.
destinationKeyNoKey of the destination inside the variant, from get_trip (e.g. "destination-1"). Required when target is 'destination' or 'option'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is known. The description adds genuinely new behavioral context: the deletion is permanent, deleting a variant/destination cascades to everything inside it, and user confirmation is required beforehand. It stops short of describing error modes or auth requirements, so not quite a 5.

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, front-loaded with the destructive scope, then usage routing, then the cascade warning. No filler and every sentence carries actionable 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, no-output-schema tool, the definition covers what it deletes, when to prefer it over siblings, the cascade risk, and the confirmation requirement. Combined with annotations and full schema coverage, an agent has everything needed to invoke it safely.

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 description coverage is 100% and the schema itself documents conditional requirements (kind for option, eventKey for event, destinationKey for destination/option) plus the optionKey/optionId naming quirk. The description adds only the target-type list, which the schema already covers, so the baseline 3 applies.

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 (permanently delete) and enumerates the exact resources it applies to: variant, destination, destination option, event. This clearly distinguishes it from siblings like update_destination_option, toggle_event, and select_destination_option.

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?

Explicitly states when to use it ('only when the user rejects something outright') and names the alternatives for the softer case ('deselect the option or toggle the event instead'). It also sets a prerequisite: confirm with the user first for cascading deletes.

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.