Skip to main content
Glama

Add Program Item

add_program_item

Add a stop/leg to a program. Params: id (program uuid) + body { templateId OR label (at least one required), dayNumber, notes, kind (tour|activity|place|meal|transfer|free_time|accommodation|info), startTime (HH:MM, OPTIONAL -- do NOT pass it if the time is unknown; the order is already set by dayNumber + insertion order/reorder_program_items), locationText (stop name/address for the map route), locationLat, locationLng, durationMin, headsetPolicy }. headsetPolicy (null clears) = { level: required|recommended|optional, groupThreshold? (int 1..500, applies to groups LARGER than this), reason (1..300, short rule summary or rationale, in the content's language), sourceUrl? (https only; REQUIRED when level=required), sourceLabel? (1..120) }. Only set level=required when a written rule exists and you have its https source; never invent rules. Copied into trips created from this program.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
bodyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
kindNo
labelNo
notesNo
createdAtNoISO 8601 timestamp
dayNumberNo
imageUrlsNo
sortOrderNo
startTimeNo
templateIdNo
durationMinNo
itineraryIdNo
locationLatNo
locationLngNo
locationTextNo
headsetPolicyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / headsetPolicy / properties / groupThreshold / type
      Previous value: -[
      -  "number",
      -  "string"
      -]New value: +[
      +  "number",
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / sortOrder / type
      Previous value: -[
      -  "number",
      -  "string"
      -]New value: +[
      +  "number",
      +  "string",
      +  "null"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the mutation/non-idempotent profile, but the description adds real behavioral context beyond them: the item is 'Copied into trips created from this program' (a lasting side effect), and headsetPolicy null clears the policy. That is meaningful disclosure the annotations cannot express.

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?

Dense and front-loaded ('Add a stop/leg to a program'), with the highest-value constraints (at-least-one-of, startTime warning, never invent rules) placed prominently. It is long, but given a nested object and 0% schema coverage most sentences earn their place; a few parenthetical length limits could be trimmed.

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

Completeness5/5

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

An output schema exists, so return values needn't be described, and the description covers the nested headsetPolicy object, enum values, ordering model, and side effects. Nothing an agent needs to invoke this correctly appears missing.

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

Parameters5/5

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

With 0% schema description coverage, the description carries the full burden and does so thoroughly: it documents every body field, the templateId-OR-label 'at least one required' rule (absent from the schema), headsetPolicy null-clearing semantics, the groupThreshold 'applies to groups LARGER than this' meaning, and the sourceUrl-required-when-level=required constraint.

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?

States a specific verb+resource: 'Add a stop/leg to a program.' The agent immediately knows the operation and the target entity. It does not, however, explicitly distinguish itself from siblings like add_trip_item or add_template_schedule_stop, leaving the program-vs-trip-vs-template distinction to inference.

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?

Provides strong conditional usage guidance: do not pass startTime when the time is unknown because ordering comes from dayNumber + insertion order/reorder_program_items, and only set headsetPolicy level=required when a written rule and its https source exist. It never names an alternative tool or an explicit when-not-to-use-this-tool condition, so it falls short of a 5.

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