Skip to main content
Glama

createShareToken

Idempotent

Create a share token

Creates a public share token for a pass, enabling distribution via URL, QR code, or messaging. The share URL points to a public page where recipients can add the pass to Apple or Google Wallet without logging in.

Idempotent — if the pass already has a share token, the existing token is returned (200) instead of creating a new one (201).

For dual-wallet passes (same serial number with both Apple and Google), the share token is automatically applied to all sibling passes.

Scope: passes:manage

Maps to OpenAPI operationId createShareToken — POST /share-pass/create.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pass_idYesID of the pass to share.
x_app_idNoOverride X-App-Id for this call. Omit the connection header by default; set it only for multi-app orgs.

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.3/5.0
Behavior4/5

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

The description goes beyond the annotations by explaining what idempotency means in practice (existing token returned with 200 instead of 201) and the automatic application to sibling passes for dual-wallet scenarios. It also discloses the required scope and notes that the same API, billing, and rate limits apply. This adds useful context that the annotations alone do not provide.

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?

The description is well-structured with a clear lead sentence followed by focused details. Each paragraph adds necessary information: idempotency, dual-wallet handling, scope, and API context. There is no fluff; every sentence contributes to understanding how to use the tool correctly.

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 mutation tool with no output schema, the description covers all critical behavioral aspects: idempotency, dual-wallet sibling propagation, required scope, rate limits, and endpoint mapping. An agent can confidently invoke this tool without missing information needed to make a correct call.

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 the schema already documents both parameters. The description does not add any additional parameter semantics beyond what the schema provides, but it also does not need to. It correctly relies on the schema, which is the baseline expectation.

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?

The description clearly states the action (create a share token), the resource (a pass), and the purpose (enabling distribution via URL, QR code, or messaging). It is specific and distinguishes itself from other share-related operations like downloadSharedPass or getSharePassMetadata by focusing on token creation. The endpoint mapping and scope further clarify its unique role.

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?

The description explains when to use the tool: to create a public share token for a pass. It also covers idempotency and dual-wallet behavior, which informs the agent when it might reuse an existing token. However, it does not explicitly contrast with sibling tools or state when not to use it, though the context is strong enough to infer.

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.