Skip to main content
Glama

Update Program Item

update_program_item
DestructiveIdempotent

Update a program stop. Params: id (program uuid), itemId (uuid) + body (label/dayNumber/notes/kind/startTime/location*/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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
bodyYes
itemIdYes

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

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds behavior the annotations cannot: 'headsetPolicy (null clears)' documents null semantics, and 'sourceUrl ... REQUIRED when level=required' documents a conditional requirement not expressed in the schema. It still does not say what the destructive update overwrites or what permissions are needed, but it earns credit above the annotation baseline.

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?

Front-loads the purpose in one clause and then packs parameters densely with no filler sentences. It is somewhat run-on with heavy parenthetical nesting, but every clause conveys usable constraint information rather than restating the schema.

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

Completeness3/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 need no explanation, and the nested headsetPolicy contract is well covered. The gaps are the update tool's key unknowns: whether unspecified fields are preserved or nulled, and how this differs from update_trip_item / update_template_schedule_stop. For a destructive, nested-object mutation these are meaningful omissions.

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 description coverage is 0%, so the description carries the burden and largely does: it enumerates body fields, explains the nested headsetPolicy shape with ranges and a non-obvious semantic ('applies to groups LARGER than this'), and flags the sourceUrl precondition. The shorthand 'location*' is weaker than the schema's locationLat/locationLng/locationText split, and unspecified-field/partial-update semantics are not addressed.

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?

Opens with a specific verb+resource: 'Update a program stop.' An agent can tell it mutates an existing program item rather than creating or reordering one. It does not, however, differentiate itself from the closely-named siblings update_trip_item or update_template_schedule_stop, which share the same verb.

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

Usage Guidelines3/5

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

There is no explicit statement of when to use this over the sibling updaters, nor any when-not guidance. The one conditional rule given ('Only set level=required when a written rule exists and you have its https source; never invent rules') is a genuine usage constraint but is scoped only to the headsetPolicy sub-field, not the tool's overall applicability.

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