Skip to main content
Glama

Create itinerary items

batch_segment_create

Create multiple segments in a trip in one call. Put each item's values in fields, named as segment_get_schema returns them (Activity activityType is one of: tour, dining, show, spa, class, sports, sightseeing, other). Each item succeeds or fails on its own: valid items are created and failed items are returned by index with the reason, so resend only the failed items. Max 50 segments per call; split larger itineraries into several calls. Segment dates must fall within the parent trip dates. Dates up to 1 day outside the trip extend it, with a warning; further out, call trip_update first. For an Activity, Lodging, EventTicket or Parking at a real place, call places_search first and put the result's place ID in fields.placeId: Tineo links that place (map pin and coordinates) and fills a missing name, address, phone and website. 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
trip_idYesThe trip ID to add segments to
segmentsYesArray of segments to create. Each must have segment_type and fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / segments / items / properties / fields / description
      Previous value: -"Field values for this segment (see segment_get_schema)"New value: +"Field values for this segment, named as segment_get_schema returns them for segment_type. Activity activityType is one of: tour, dining, show, spa, class, sports, sightseeing, other."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare write/non-idempotent/non-destructive, but the description adds substantial behavior: per-item partial success/failure with index-based failure reporting, the 50-segment cap, date-range auto-extension with a warning, place-linking side effects (map pin, coordinates, and auto-filled name/address/phone/website), and the 'time not set' semantics. This is far richer than the annotations alone.

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?

Long, but front-loaded with the core action and then ordered by importance: batching, partial-failure handling, limits, date rules, place linking, time rules. Nearly every sentence carries actionable constraint, though the density is dense enough that a tighter grouping would help.

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 batch write tool with no output schema, the description supplies the missing return behavior (failed items returned by index with reasons) and covers prerequisites, limits, and edge-case date handling. An agent has everything needed 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 earns extra by cross-referencing segment_get_schema for field naming, defining the Activity activityType values, and specifying startDateTime formats (YYYY-MM-DD vs. clock time) plus the placeId contract that the generic 'fields' object does not document.

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 and resource ('Create multiple segments in a trip in one call'), immediately distinguishing the batch operation from the single-item segment_create sibling. An agent knows exactly what this does without opening the 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 when-to-use and when-to-escalate: split itineraries larger than 50 segments, resend only failed items, call trip_update for dates more than 1 day outside the trip, and call places_search before creating Activity/Lodging/EventTicket/Parking at a real place. Alternatives and preconditions are named, not inferred.

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