Skip to main content
Glama

Stackhal

Repair Apple Wallet pass.json

repair_apple_pkpass_spec
Read-only

Automatically repair and sanitize broken Apple Wallet pass.json manifests: fixes missing formatVersion, prefixes passTypeIdentifier, ensures 10-character team ID, normalizes dates to ISO 8601 with timezones, and auto-corrects low contrast.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pass_jsonYesThe raw, broken pass.json JSON string to repair.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, lowering the burden. The description enumerates specific repair operations, which adds functional context, but omits behavioral details like return format, idempotency, error handling, or authentication requirements.

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?

A single front-loaded sentence states the action and then itemizes the fixes with a colon-list; every clause carries information. No filler or redundancy.

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?

With no output schema and one input parameter, the description should ideally state what is returned (e.g., a repaired JSON string) and whether the input is returned unchanged on failure. It covers the repair operations well but leaves return semantics implicit.

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?

The schema fully documents the single parameter (pass_json) with a clear description. The tool description does not add any syntax or format details beyond what the schema provides, so the baseline of 3 for high schema coverage 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 uses a specific verb ('repair and sanitize') on a clear resource ('Apple Wallet pass.json manifests') and lists the exact defects addressed. It does not explicitly reference sibling tools like generate_apple_pkpass_spec or inspect_apple_pkpass, so the differentiation is implicit rather than stated.

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?

No when-to-use or when-not-to-use guidance is provided; the description only states what the tool does. It does not name alternatives (e.g., generate_apple_pkpass_spec) or prerequisites such as 'use this after generation yields invalid pass.json'.

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.