Skip to main content
Glama

walletmcppass: Apple Wallet passes

Update Apple Wallet pass

update_wallet_pass
DestructiveIdempotent

Change a pass made with create_wallet_pass(updatable=True); every iPhone that added it refreshes.

Takes the serial_number and edit_token returned when the pass was created, the required
contact_email and x402_ready, plus any of create_wallet_pass's parameters (x402_payment and credit_key included), with the same meanings. Each parameter given replaces the
stored value completely (a fields list replaces the whole list, so resend unchanged fields
too); parameters left out keep their current values. Clear a text value with "" and a list
with []. To cancel a pass, set voided=True: Wallet marks it void on every iPhone.

Wallet asks the server for the new version as soon as Apple delivers the push, usually within
seconds. A field's changeMessage is shown on the lock screen when that field's value changes.

Only works until the pass's updatable_until time (set by updatable_hours at creation).

Returns {download_url, expires_in_seconds, serial_number, pass_type_identifier,
notified_devices, updatable_until}. notified_devices counts the iPhones the push was sent to, not ones that
have already refreshed. The download_url (valid 1 hour) is only needed to add the pass to a
new device. With x402_ready=False the result may also have payment_setup, as for create_wallet_pass.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "serial_number": "<serial_number>",
      "edit_token": "<edit_token>",
      "contact_email": "<contact_email>",
      "x402_ready": "<x402_ready>"
    },
    "name": "update_wallet_pass"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleNo
posterNo
voidedNo
icon_textNo
locationsNo
logo_textNo
semanticsNo
credit_keyNo
edit_tokenYes
icon_colorNo
info_linksNo
logo_colorNo
x402_readyYes
back_fieldsNo
descriptionNo
label_colorNo
icon_png_b64No
logo_png_b64No
max_distanceNo
transit_typeNo
x402_paymentNo
contact_emailYes
footer_fieldsNo
generate_logoNo
header_fieldsNo
relevant_dateNo
serial_numberYes
strip_png_b64No
barcode_formatNo
primary_fieldsNo
artwork_png_b64No
barcode_messageNo
expiration_dateNo
semantic_layoutNo
auxiliary_fieldsNo
background_colorNo
barcode_alt_textNo
featured_actionsNo
foreground_colorNo
secondary_fieldsNo
organization_nameNo
thumbnail_png_b64No
background_png_b64No
primary_logo_png_b64No
secondary_logo_png_b64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / credit_key
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Credit Key"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / x402_payment
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "X402 Payment"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / contact_email
      Added value: +{
      +  "title": "Contact Email",
      +  "type": "string"
      +}
    • addedInput schema / properties / x402_ready
      Added value: +{
      +  "enum": [
      +    true,
      +    false,
      +    "unknown"
      +  ],
      +  "title": "X402 Ready"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "serial_number",
      -  "edit_token"
      -]New value: +[
      +  "serial_number",
      +  "edit_token",
      +  "contact_email",
      +  "x402_ready"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that updates push to every device that holds the pass, that each supplied parameter replaces the stored value wholesale (so lists must be resent in full), that "" and [] clear values, and that voiding marks the pass void on every iPhone. It also explains the downstream push/refresh timing and the 1-hour lifetime of download_url, which annotations (destructive/idempotent/openWorld) do not convey.

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 core action and precondition, then layers semantics, cancellation, timing, and return shape in a readable order. The middle paragraph is dense with parenthetical clauses and could be split, but nearly every sentence adds actionable information.

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?

For a high-complexity mutation tool with no output schema, the description covers the mutation semantics, device propagation, expiry constraint, cancellation path, and the full return object including the meaning of notified_devices and the limited use of download_url. Nothing an agent needs to call it correctly appears to be missing.

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?

With 45 parameters at 0% schema coverage, the description carries real weight: it identifies the four required values, their provenance (serial_number and edit_token from creation), replacement-vs-omission semantics, clearing syntax, and defers the remaining payload to create_wallet_pass with "the same meanings", including x402_payment and credit_key. It does not enumerate the long tail of visual/field parameters, but delegating to the sibling is a reasonable compensation.

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 ("Change a pass") and explicitly scopes it to passes made with create_wallet_pass(updatable=True), naming the sibling it depends on. The agent can distinguish it from create_wallet_pass and the credit tools without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit preconditions (pass must have been created with updatable=True, and must still be within updatable_until set by updatable_hours) and an explicit alternative action for cancellation (voided=True rather than deletion). The relationship to create_wallet_pass for the initial creation is stated directly.

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.