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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
city_idNoExact city catalog ID. Provide this OR city_name.
countryNoOptional country name or country code used to disambiguate city_name.
trip_idYesTrip ID.
city_nameNoExact city name. Provide this OR city_id; ambiguous names return candidates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The core idempotency claim duplicates the idempotentHint=true annotation, so no credit there. However, the description adds genuine behavioral context the annotations lack: the city is appended to the END of an ordered list, and idempotency applies specifically when an 'equivalent' city is already present, which qualifies the annotation meaningfully.

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?

Two tight sentences with zero padding; the append-position behavior is front-loaded and the idempotency caveat follows immediately.

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 simple mutation with a fully documented schema and annotations covering the safety profile (not read-only, not destructive, idempotent), the description covers the essential append semantics. It stops short of addressing what happens on ambiguous city_name or a missing trip, but those gaps are minor against the rich structured fields.

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 description coverage is 100%, so city_id, city_name, country and trip_id are already fully documented, including the OR-relationship and disambiguation behavior. The description adds nothing about parameter syntax or usage, so the baseline of 3 applies.

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 gives a specific verb (add) and resource (city to a trip's ordered city list) and even pinpoints the append position, which implicitly separates it from trip_cities_reorder and trip_city_update. It does not explicitly name those siblings, so an agent gets clear purpose but no direct routing cues.

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?

There is no when/when-not guidance and no mention of the neighboring tools (trip_city_update, trip_cities_reorder, trip_city_remove, cities_search). The idempotency note hints at repeat-call behavior but provides no selection guidance.

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