Skip to main content
Glama

Update itinerary item

segment_update
DestructiveIdempotent

Update an existing segment or batch-update up to 50 segments at once. 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). Writing pricing fields on a segment stores them on the segment and does NOT auto-create a trip expense row (use trip_expense_create for manual expenses). 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. Use known or itinerary-derived clock times for requested edits and use reasonable planned times when the user delegates scheduling. Keep unknown booking times date-only (YYYY-MM-DD), stored as time not set. For commercial cruise reservations and sea/port days use cruise_* tools. Never substitute Activity, CruiseActivity or another segment type for a cruise day. Ordinary shore excursions remain valid Activity/CruiseActivity. If cruise tools are unavailable explain the limitation and ask for clarification. Cruise/CruiseDay generic writes require the dedicated cruise tools; their schemas and full reads remain available.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "segment_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoAlias for segment_id (widget compatibility)
fieldsNoField values to update on a single segment. 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.
segmentsNoBatch update up to 50 existing segments in one call. Do not combine with segment_id or fields. Each item requires segment_id (or id) and fields (non-empty object of changed fields).
segment_idNoThe ID of the segment to update (for single-segment updates)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / fields / description
      Previous 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."New value: +"Field values to update on a single segment. 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."
    • changedInput schema / properties / segment_id / description
      Previous value: -"The ID of the segment to update"New value: +"The ID of the segment to update (for single-segment updates)"
    • addedInput schema / properties / segments
      Added value: +{
      +  "description": "Batch update up to 50 existing segments in one call. Do not combine with segment_id or fields. Each item requires segment_id (or id) and fields (non-empty object of changed fields).",
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "fields": {
      +        "description": "Field values to update on this segment.",
      +        "type": "object"
      +      },
      +      "id": {
      +        "description": "Alias for segment_id",
      +        "type": "string"
      +      },
      +      "segment_id": {
      +        "description": "The ID of the segment to update",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "minItems": 1,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses that the write is partial ('only provide fields you want to change'), that the response echoes every saved field read back from Tineo, that pricing fields do not auto-create a trip expense row, and that fields.placeId silently replaces the stored address. It also documents the date validation constraint against the parent trip and the guidance for unknown booking times.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and batch limit are front-loaded, which is good, but the paragraph then becomes a dense run-on of constraint clusters (schema lookup, dates, checklists, pricing, placeId, time conventions, cruise rules). Each rule is useful, yet there is no grouping or ordering marker, making it hard to scan for the one rule that matters.

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 what the result contains ('the saved value of every field you sent, read back from Tineo'). For a destructive, nested-object, batch-capable mutation, the constraints an agent must respect are all present.

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 schema carries the baseline, but the description adds real meaning the schema lacks: the significance of fields.placeId for specific segment types, the trip-date constraint on date values, and the date-only convention for unknown booking times. The single/batch mutual exclusion is left mostly to the schema's own description text.

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 and resource ('Update an existing segment or batch-update up to 50 segments at once'), covering both single and batch modes. It is clearly distinguishable from segment_create, segment_delete, and segment_details, which are named elsewhere in the text.

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?

It routes the agent explicitly: use segment_get_schema for field names, trip_update to extend the trip before setting out-of-range dates, checklist_* tools (not this tool) to change checklist tasks, trip_expense_create for expenses, and cruise_* tools for cruise days with an explicit fallback ('if cruise tools are unavailable explain the limitation'). It also states a when-not-to-verify rule: don't call segment_details to confirm the change.

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