Delete itinerary item
segment_deleteDelete a segment from a trip. This action cannot be undone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| segment_id | Yes | The ID of the segment to delete |
segment_deleteDelete a segment from a trip. This action cannot be undone.
| Name | Required | Description | Default |
|---|---|---|---|
| segment_id | Yes | The ID of the segment to delete |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare destructiveHint=true and idempotentHint=false. The description reinforces this with 'This action cannot be undone,' adding irreversibility emphasis beyond the flags. However, it says nothing about permissions, cascading effects on associated bookings/places, or rate limits, which would be valuable for a delete.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, zero waste, with the destructive warning front-loaded immediately after the purpose. Ideal size for a simple delete.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter delete with annotations covering the safety profile and no output schema needed, the description is essentially complete. Only minor gaps remain around side effects on linked data.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With a single parameter at 100% schema description coverage, the schema fully documents segment_id. The description adds no format, sourcing, or constraint detail beyond the schema, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb ('Delete') and resource ('segment from a trip'), so an agent immediately knows the operation. It does not explicitly distinguish itself from siblings like segment_update or trip_delete, but the resource name is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this versus alternatives (e.g., segment_update for edits, batch_segment_create for bulk adds, trip_delete for whole-trip removal). Usage is only implied by the verb.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.