Skip to main content
Glama
walletap

@walletap/mcp-server

Official
by walletap

create_template

Destructive

Create a wallet pass template with design overrides, NFC, barcode, and fields. Certificate provisioning runs in background; re-read template to confirm.

Instructions

Create a new pass template. Only name and type are required. Use pass to override colors, fields, barcode, NFC, and image references. The response returns status: 'active' immediately, but the Apple certificate, Google Wallet class and Stripe meters provision in the BACKGROUND and are written back a few seconds later — so passTypeId / appleCertificates are usually still null in the create response. Re-read the template with get_template before concluding that certificate provisioning failed. NFC: set pass.nfc: true (and enableNFC: true) BEFORE creating; the certificate is issued with the NFC entitlement based on that flag at provision time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTemplate display name.
passNoPass design overrides. Most useful keys: backgroundColor, textColor, labelColor, logo, hero, icon, strip, rows, linkRows, header, barcode, nfc. Inside rows / linkRows / header you can send field shorthand like { id: "memberName", label: "Member" } — the server fills fieldValue, name and (for known ids like balance) googleId. Image fields accept either { preview: "https://…" } or { fileId: "file_…" } from POST /files. STAMP CARDS (loyalty): set `useStampCollection: true`, `stampCount: <n>`, `stamp: { fileId }` (icon — `purpose: 'template_stamp'`), AND `hero: { fileId }` (REQUIRED — the wide banner that stamps are composited onto as a dimmed background, `purpose: 'template_hero'`). Without `hero` the server skips banner generation and the pass shows no stamps. Both images must be supplied for stamps to render. VALUES: every `fieldValue: 'custom'` block — in `header`, `rows` and `linkRows` alike — is filled at issue time from `templateFields[id]` on create_pass. Do not put display values in the template itself. APPLE STRIP: Apple's banner is generated from the hero you supply here; if you supply none, the pass falls back to a stock per-type image that will not match the business. Supply a `hero` fileId for any customer-facing template. ICON: ALWAYS supply one, sourced from the business's own website — omit it and the pass ships the WALLETAP logo, which is the most visible way for a customer's card to look unfinished. Their icon is declared in their HTML; prefer `<link rel="apple-touch-icon">`, then the largest `<link rel="icon" sizes=…>`, then `msapplication-TileImage`, and take the biggest square available (a 32px favicon upscaled to 87px is mush). Then CHECK IT AGAINST THE CARD: favicons are drawn for browser tabs and are usually a dark mark on transparency, which vanishes on a dark pass. When that happens, keep their glyph but set it on a filled disc in their brand colour with the mark knocked out in white — legible at 29px, and safe under Google's circular mask. WEB LINK: `webApp` is the business's site (a full https URL is fine) and `webAppLabel` is what Google Wallet calls that row. Without a label the row is named after the pass title, which tells the holder nothing about where it goes — write e.g. 'ACME website'. Omit `webApp` rather than guessing a URL; a row that leads nowhere is worse than no row.
typeYesPass type: loyalty, giftCard, eventTicket, offer, generic.
beaconsNoOptional iBeacon configs.
passPageNoOptional pass landing-page design overrides.
enableNFCNoEnable NFC tap (default false).
locationsNoOptional geofences that surface the pass on the lock screen near a site. Each entry: { name?, address?, latitude, longitude, relevantText? }. `latitude`/`longitude` (or `lat`/`lng`) are REQUIRED per entry — entries without a usable coordinate pair are dropped, since a geofence that cannot resolve never fires. `relevantText` is the lock-screen line, e.g. 'Hold your phone to the reader'.
enrollFormNoOptional enroll form. Shape: { title, buttonLabel, fields: [{ id, label, type, required, fieldValue? }] }. Form values route to issued passes by the same id/fieldValue rule as pass fields.
cardSharingNoCard sharing policy (Google Wallet).
enableBarcodeNoEnable barcode (default true).
requireAuthenticationNoRequire device authentication to view the pass.
Behavior5/5

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

The description goes far beyond the annotations (destructiveHint: true) by disclosing the asynchronous provisioning behavior — the create response returns status 'active' but certificate fields are null until a few seconds later — and instructs the agent to re-read the template before concluding failure. It also details the NFC flag timing, stamp card hero requirements, and icon sourcing rules. This rich behavioral context directly aids correct invocation.

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 long but well-structured, with the main purpose front-loaded and subsequent details organized into thematic paragraphs (NFC, stamp cards, values, strip, icon, web link). Each section adds essential information for a complex tool. While lengthy, every part earns its place, and the structure aids scanning.

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?

Given the tool's 11 parameters, nested objects, and no output schema, the description covers the most critical and error-prone aspects: required vs optional fields, async provisioning, stamp card prerequisites, icon sourcing, and the value-filling rule. It provides enough detail for an agent to call create_template correctly without additional lookups, leaving no major gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds substantial meaning beyond the schema. It explains the `pass` object in depth: stamp card special requirements (useStampCollection, stampCount, stamp, hero), the 'custom' fieldValue rule, Apple strip generation from hero, icon sourcing best practices, and webLink/webAppLabel semantics. It also carifies the `enableNFC` flag's effect on certificate entitlement. This goes well beyond baseline.

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 opens with a clear action: 'Create a new pass template.' The verb 'Create' and resource 'pass template' are unambiguous, and the description distinguishes it from siblings like list_templates and update_template by focusing solely on creation. It also lists required fields, which further clarifies the scope.

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 gives clear context on when to use this tool: to create a new pass template. It also provides post-call guidance by advising to re-read the template with get_template to verify certificate provisioning, and warns that the NFC flag must be set before creation. However, it does not explicitly contrast with alternatives like update_template, though the purpose is implied by the name and opening sentence.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/walletap/walletap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server