Skip to main content
Glama

Get a saved trip

get_trip
Read-only

Returns a trip's current plan, stated preferences and version history.

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": {
      "trip_id": "<trip_id>"
    },
    "name": "get_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo1-indexed day numbers to include.
trip_idYes
versionNoVersion number to inspect; defaults to current.
versions_beforeNoLists the 10 versions before this number instead of the newest.

Output Schema

NameRequiredDescriptionDefault
planYes
tripNo
acceptedNo
versionsYes
next_actionNo
preferencesNo
couldnt_checkNo
provenance_rulesNoFacts are sourced, unverified, stale or not_checked. Prices are live, estimate or none; hotel and flight prices are never estimated.
couldnt_check_moreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare this as read-only, non-destructive, and closed-world, so the safety profile is covered. The description adds useful scope by saying it returns the current plan, stated preferences, and version history, but it does not elaborate on version inspection behavior, filtering, or response characteristics beyond what the structured schema provides.

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

Conciseness5/5

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

The description is a single, front-loaded sentence with no redundant wording. Every phrase contributes to identifying the returned data.

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?

Because annotations cover safety and an output schema exists, the description does not need to explain return formatting or permissions. It still gives a useful high-level summary of what the tool provides, though it could have added a brief note on version inspection or when to prefer this retrieval tool over related siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description does not mention any of the four parameters or explain how days, version, and versions_before interact. The input schema documents most parameters, but with only 75% schema description coverage and no parameter context in the description, the tool definition leaves avoidable ambiguity around version selection and history listing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource: it returns a trip's plan, preferences, and version history. That clearly identifies a read/retrieval tool, but it does not explicitly differentiate get_trip from related siblings such as show_findings or restore_version.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description states what the tool returns but gives no guidance about when to use it versus alternatives or when not to use it. An agent can infer that it retrieves a saved trip, but there are no explicit usage conditions or sibling routing cues.

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