Skip to main content
Glama

Stackhal

Generate Apple Wallet pass.json

generate_apple_pkpass_spec
Read-only

Generate a production-ready, fully compliant Apple Wallet pass.json specification based on pass type, metadata, colors, barcode, and field values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pass_typeYesPass style type: "boardingPass", "eventTicket", "storeCard", "coupon", or "generic".
descriptionYesHuman-readable description of the pass, e.g. "Flight from SFO to WAW".
label_colorNoLabel text color as CSS rgb(r, g, b), e.g. "rgb(148, 163, 184)".
transit_typeNoTransit type for boardingPass: "PKTransitTypeAir", "PKTransitTypeTrain", "PKTransitTypeBus", "PKTransitTypeBoat", "PKTransitTypeGeneric".
serial_numberNoUnique pass serial number, e.g. "LOT-89421".
barcode_formatNoBarcode format: "PKBarcodeFormatQR", "PKBarcodeFormatPDF417", "PKBarcodeFormatAztec", "PKBarcodeFormatCode128".
barcode_messageNoBarcode message payload, e.g. "M1HAL/BAHDAN ELO027".
team_identifierNoApple Developer 10-character Team ID, e.g. "BAHDAN9988".
background_colorNoBackground color as CSS rgb(r, g, b), e.g. "rgb(15, 23, 42)".
foreground_colorNoForeground text color as CSS rgb(r, g, b), e.g. "rgb(255, 255, 255)".
organization_nameYesName of the pass issuing organization, e.g. "Acme Airlines".
pass_type_identifierNoApple Pass Type Identifier starting with "pass.", e.g. "pass.com.example.ticket".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered elsewhere. The description adds only the vague qualifiers 'production-ready' and 'fully compliant', without stating what validation is performed, what the caller receives back (raw pass.json text vs. an object), or whether required Apple fields are auto-filled. With no output schema, this leaves real behavioral questions unanswered.

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?

A single well-formed sentence with the key action front-loaded and no filler. It is dense and readable; the only mild waste is the stacked marketing adjectives 'production-ready, fully compliant'.

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?

For a 12-parameter generator with no output schema, the description at least identifies the artifact produced (pass.json specification) and the main input categories, which is minimally adequate. It stops short of describing the return shape or which Apple-required fields the caller must supply versus which are generated.

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 every parameter is already documented in the schema itself, including formats and examples. The description's list of input categories adds no syntax, defaults, or constraints beyond that, so the baseline 3 applies.

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 gives a specific verb+resource ('Generate ... Apple Wallet pass.json specification') and lists the input dimensions (pass type, metadata, colors, barcode, field values). It does not explicitly name or differentiate itself from the sibling tools inspect_apple_pkpass and repair_apple_pkpass_spec, but the generate/repair/inspect distinction is inferable from the verb.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisite context, and no mention of the alternatives (repair_apple_pkpass_spec for fixing an existing spec, inspect_apple_pkpass for reading one). The trailing phrase 'based on pass type, metadata, colors, barcode, and field values' describes inputs, not usage conditions.

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.