Skip to main content
Glama

updatePass

Idempotent

Update a pass

Updates the dynamic data of an active pass. Optionally sends a push notification to registered devices so they fetch the updated pass. At least one of data, expires_at, locations, relevant_date, or max_distance is required.

Scope: passes:manage

Maps to OpenAPI operationId updatePass — PATCH /manage-passes/{id}.

Same PassFast HTTP API, billing, and rate limits. Do not invent other paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPass ID.
dataNoNew dynamic field values to merge into the pass.
x_app_idNoOverride X-App-Id for this call. Omit the connection header by default; set it only for multi-app orgs.
locationsNoGPS locations where the pass is relevant (overrides template defaults).
expires_atNoExpiration timestamp (set to null to remove expiration).
push_updateNoIf true, send a push notification to registered devices.
max_distanceNoMaximum distance in meters from a location for lock screen relevance.
relevant_dateNoISO 8601 date when the pass is relevant (lock screen).
strip_image_idNoOverride the template's strip/hero image for this pass. The referenced image must belong to the same app and have purpose `strip` (or a `strip_*` variant). Applied to Apple `strip.png` and Google `heroImage` atomically (synced to the sibling pass for dual-wallet). Send `null` to clear the override and revert to the template's strip image. Omit the field to leave the current override unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / x_app_id / description
      Previous value: -"Override X-App-Id for this call. Defaults to the MCP connection header."New value: +"Override X-App-Id for this call. Omit the connection header by default; set it only for multi-app orgs."
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false. The description adds substantial behavioral context: it can trigger push notifications, has scope passes:manage, maps to PATCH, and explains strip_image_id override behavior and rate-limit alignment. It also cautions against inventing paths, enhancing transparency well beyond the annotations.

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 description is well-structured and front-loaded with the core action, followed by scope and mapping details. It is slightly long but every sentence contributes value, and there is no redundant repetition.

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 complex update tool with 9 parameters and no output schema, the description covers key constraints, required-field rules, scope, and behavioral notes. It omits explicit return-value details, but for an update operation this is not critical, and the description is sufficiently complete for correct invocation.

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% with descriptions for all parameters, so the baseline is 3. The description adds the 'at least one of' constraint (not present in the schema) and clarifies the push_update flag's effect, providing meaningful semantic value beyond the schema.

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 states a clear verb and resource ('Update a pass') and specifies the scope ('dynamic data of an active pass'), mapping to the OpenAPI operation. It is unambiguous, though it does not explicitly contrast with the sibling updatePassBySerial, so it loses a point for not differentiating by name.

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?

The description provides useful context: it targets active passes, requires at least one of several fields, and mentions optional push notifications. However, it offers no explicit guidance on when to prefer this tool over updatePassBySerial or when to avoid it, leaving usage conditions implied rather than stated.

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.