Skip to main content
Glama

Update itinerary item

segment_update
DestructiveIdempotent

Update an existing segment. Only provide the fields you want to change. Get field names from segment_get_schema if unsure. Segment dates must fall within the parent trip dates; use trip_update first to extend the trip. To change a checklist's tasks use checklist_items_add, checklist_item_update, checklist_items_remove or checklist_items_reorder (IDs from trip_checklists). The result lists the saved value of every field you sent, read back from Tineo, so do not call segment_details to confirm the change. On an Activity, Lodging, EventTicket or Parking, fields.placeId (a place_id from places_search) attaches that place the same way segment_associate_place does, replacing the stored address with the place's. Never invent a time: if the user has not given or chosen one, ask, or send the date only (YYYY-MM-DD) in startDateTime and Tineo stores it as time not set. Send a clock time only when the user stated it or a booking shows it.

Input Schema

NameRequiredDescriptionDefault
idNoAlias for segment_id (widget compatibility)
fieldsNoField values to update. Only include fields that should be changed. Send null to clear an optional field; an empty string is ignored and the stored value is kept.
segment_idNoThe ID of the segment to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / fields / description
      Previous value: -"Field values to update. Only include fields that should be changed."New value: +"Field values to update. Only include fields that should be changed. Send null to clear an optional field; an empty string is ignored and the stored value is kept."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond annotations (destructiveHint/idempotentHint/readOnlyHint), it discloses the return behavior ('lists the saved value of every field you sent, read back from Tineo'), the placeId side effect of replacing the stored address, and the date/time storage semantics (date-only stored as time-not-set). It does not, however, spell out permission/auth requirements or what happens to sibling trip dates when a segment is mutated.

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?

The purpose is front-loaded and every sentence carries operational value, but the paragraph is dense and long, packing null/empty-string, place, and time rules into one block without visual separation. It earns its length more than most, though it could be tightened.

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?

With no output schema, the description compensates by explaining the return payload, and it covers the tricky edge cases (date-bounded prerequisites, time handling, place attachment, checklist delegation) that an agent needs to call 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, but the description adds real param-level meaning beyond the schema: the startDateTime accepted formats (YYYY-MM-DD vs a clock time), the time-not-set behavior, and the fields.placeId mechanism with its triggering segment types (Activity/Lodging/EventTicket/Parking).

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 opens with a specific verb+resource ('Update an existing segment') and immediately scopes it as a partial update ('Only provide the fields you want to change'). It also names the sibling it is NOT for checklist tasks, and routes to segment_get_schema and trip_update, so an agent can distinguish it from segment_create/segment_delete/checklist_item_update without opening any schema.

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?

Explicit guidance is given on multiple axes: how to use it (only send changed fields), where to get field names (segment_get_schema), a hard precondition (segment dates must fall within parent trip dates, else trip_update first), alternatives for checklist tasks (the four checklist_* tools), and an explicit 'do not call segment_details to confirm'. This is when/when-not/alternatives coverage.

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