Skip to main content
Glama

View itinerary item

segment_details
Read-onlyIdempotent

Get full details for a specific trip segment. Returns complete information based on segment type: flight details (airline, flight number, airports, terminals, seats, baggage, pricing), hotel details (property, address, check-in/out times, room type, guests, rooms, nights, breakfast, pricing breakdown, amenities), activity details (venue, tickets, timing, participants, pricing), event ticket details (event name, venue, timing, vendor, order, confirmation, pricing), car rental details (company, vehicle, pickup/dropoff locations), or transfer details (provider, transfer type, pickup/dropoff locations, addresses, and local times). bookingContext describes whether the native quick-edit shortcut is supported or needs the full in-app editor; all MCP schema fields remain readable here and editable via segment_update (use segment_get_schema for field names).

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": {
      "segment_id": "<segment_id>"
    },
    "name": "segment_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
segment_idYesThe unique identifier of the segment to fetch details for

Output Schema

NameRequiredDescriptionDefault
canEditNo
segmentNo
bookingContextNo
duplicateStatusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description adds genuine behavioral context beyond that: what each segment type returns and, more importantly, that bookingContext signals whether the native quick-edit shortcut is supported or the full in-app editor is required.

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?

Front-loaded with the purpose, which is good, but the bulk is one long parenthetical enumerating return fields for six segment types. Since an output schema exists, much of that enumeration duplicates structured data and inflates the definition for a single-parameter read tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Everything needed to call it correctly is present: the identifier, the read-only nature, the edit path, and the bookingContext caveat. The only inefficiency is spending most of the text on return fields that the output schema already documents.

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?

Only one parameter with 100% schema description coverage, so the schema already defines segment_id fully. The description adds no syntax or format detail for the identifier, but the baseline for a single fully-documented parameter is 4.

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 ('Get full details for a specific trip segment') and immediately distinguishes itself from siblings by naming segment_update for editing and segment_get_schema for field names. An agent can tell this is the read path for one segment 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear context: read details here, edit via segment_update, resolve field names via segment_get_schema. It doesn't state explicit exclusions (e.g., when to use segment_create or place_details instead), but the read-vs-edit split is unambiguous.

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