Skip to main content
Glama

Create itinerary items

batch_segment_create

Create multiple segments in a trip in one call. To save into a trip that does not exist yet, send new_trip (title, start_date, end_date) instead of trip_id: the trip and its items are created in this 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. 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

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "segments": "<segments>"
    },
    "name": "batch_segment_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
trip_idNoThe trip ID to add segments to. Send this or new_trip.
new_tripNoUse instead of trip_id to create the trip and its segments in one call. A trip of the user's with the same title and dates is reused.
segmentsYesArray of segments to create. Each must have segment_type and fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond annotations by disclosing per-item partial success, failed items returned by index with reasons, the 50-segment cap, date-extension warnings, and automatic place-data filling. It also explains how unknown booking times are stored and how cruise writes are restricted, which are important behaviors not captured by the non-readonly, non-destructive annotations.

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 nearly every sentence carries operational information about date rules, place linking, partial failure, or cruise restrictions. It is dense and would benefit from bullet grouping, but the length is justified by the tool's complexity and the absence of an output schema.

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?

Complete for a batch mutation tool with no output schema: it explains the return behavior for failed items, creation limits, date constraints, trip creation, place enrichment, and the cruise-tool boundary. An agent has enough information to call it correctly and to recover from partial failures.

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 parameter documentation, but the description adds meaning beyond it: fields.placeId should come from places_search, unknown times should be date-only and stored as 'time not set', and new_trip reuses a matching trip. It sensibly defers individual field names to segment_get_schema rather than duplicating them.

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' — and immediately clarifies the batch scope versus single-segment creation. It also distinguishes the new_trip path and the cruise-tool alternative, so an agent can route correctly without opening another 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?

Gives explicit when-to-use guidance for trip_id versus new_trip, places_search before certain segment types, trip_update when dates fall too far outside the trip, and cruise_* tools for cruise reservations. It also states what not to do by forbidding substitution of Activity, CruiseActivity, or another segment type for a cruise day.

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