Skip to main content
Glama

Got a Plan Trip Planner

Start a trip from a flight

start_trip_from_flight

Creates a trip from a return fare saved in the new-trip draft: it starts the day the flight lands at its airport and ends the day the flight home leaves, and keeps the fare as the trip's outbound and home flights. The traveller's wishes and focus area from the draft go with it. The route between can be planned with update_trip; the planner's map shows the country's must-see places for the traveller to tap. Shows the trip in the planner.

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": {
      "deal_id": "<deal_id>"
    },
    "name": "start_trip_from_flight"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
deal_idYesDeal id from the draft

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint false, destructiveHint false, openWorldHint false), the description discloses what is actually created: trip dates derived from the land/home flight days, the fare stored as outbound and home flights, and the draft's wishes and focus area carried over. It also notes the visible side effect that the trip appears in the planner. It says nothing about failure behavior for an invalid or stale deal_id.

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 core action and date derivation come first, and the follow-on pointers come later, which is the right ordering. It is dense but mostly earns its length; the sentence about the planner map showing must-see places is the most expendable.

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?

For a two-parameter mutation tool with no output schema, the description covers creation semantics, derived dates, carried-over draft state, visible outcome, and next step. The only real omission is the purpose of the optional name argument.

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

Parameters3/5

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

Schema coverage is only 50%, so the description has to carry weight. It effectively explains deal_id by tying it to 'a return fare saved in the new-trip draft', but the optional name parameter is never mentioned in either the schema or the description, leaving its naming behavior ambiguous.

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 ('Creates a trip from a return fare saved in the new-trip draft') and pins down the source of the data, which implicitly separates it from start_trip_without_flights and create_trip. An agent can tell exactly what this produces 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 Guidelines4/5

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

The precondition is clear: a return fare must already exist in the new-trip draft. It also names update_trip as the follow-on for planning the route between the two flight dates. It stops short of stating when not to use it (e.g. no draft or one-way fare), so it is strong but not exhaustive.

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.