Skip to main content
Glama

Add Trip City

trip_city_add
Idempotent

Add a city to the end of a trip's ordered city list. This is idempotent when an equivalent city is already present. Pass city_name plus country: names are matched against the catalog (including aliases), a major city that shares its name with smaller places resolves to the major one, and a real town or island missing from the catalog (for example Bijagua or Santorini) is looked up in that country and added automatically.

Input Schema

NameRequiredDescriptionDefault
city_idNoExact city catalog ID. Provide this OR city_name.
countryNoCountry name or ISO code (for example CR or Costa Rica). Strongly recommended with city_name: it disambiguates same-named cities and lets Tineo add a place that is missing from the catalog.
trip_idYesTrip ID.
city_nameNoCity, town or island name. Provide this OR city_id; ambiguous names return candidates, so pass country as well.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / city_name / description
      Previous value: -"Exact city name. Provide this OR city_id; ambiguous names return candidates."New value: +"City, town or island name. Provide this OR city_id; ambiguous names return candidates, so pass country as well."
    • changedInput schema / properties / country / description
      Previous value: -"Optional country name or country code used to disambiguate city_name."New value: +"Country name or ISO code (for example CR or Costa Rica). Strongly recommended with city_name: it disambiguates same-named cities and lets Tineo add a place that is missing from the catalog."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, but the description adds real behavioral context: equivalent-city idempotency, alias matching, major-city precedence over same-named smaller places, and automatic catalog miss handling (Bijagua, Santorini). That is substantive disclosure beyond structured fields.

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 idempotency claim are front-loaded in the first sentence, then resolution rules follow. It is dense with useful detail rather than padded, though the second sentence runs long and could be split for scanability.

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 write tool with no output schema, the definition covers input modes, idempotency, and name-resolution edge cases well. It does not state permission requirements or what the response contains when candidates are returned, leaving a small gap.

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 OR relationship between city_id and city_name and the country recommendation are already documented. The description still adds non-obvious semantics: names match the catalog including aliases, same-named cities disambiguate by country, and a missing real place is looked up and added automatically.

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 with scope: 'Add a city to the end of a trip's ordered city list.' The 'end'/'ordered list' framing cleanly separates it from trip_cities_reorder, trip_city_update, and trip_city_remove without needing to name them.

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?

Tells the agent when to supply city_name plus country and how the two input modes behave, including that ambiguous names return candidates. It stops short of naming the sibling lookup tool (cities_search) as an alternative path, so it lacks explicit alternatives/exclusions.

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