Skip to main content
Glama

audit_qr_url_and_prepress

Read-onlyIdempotent

Validates a QR payload for expiring redirects, homoglyph domains, contrast and polarity issues, and center-logo error-correction budget before printing.

Instructions

Audits a QR URL or static payload for 60+ expiring 14-day dynamic-QR SaaS redirectors, link shorteners, punycode xn-- homoglyphs, tracking clutter, WCAG >= 4.5:1 contrast, inverted dark-background polarity, and EC Level H center-logo Reed-Solomon codeword budget.

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": {
      "payload": "<payload>"
    },
    "name": "audit_qr_url_and_prepress"
  }
}

Input Schema

NameRequiredDescriptionDefault
bgColorNoBackground paper/quiet-zone hex color (defaults to "#FFFFFF").
ecLevelNoISO/IEC 18004 error correction level ("L", "M", "Q", or "H"; defaults to "H").
fgColorNoForeground module hex color (must be darker than background for standard QR reflectance; defaults to "#141821").
payloadYesURL, WIFI:, BEGIN:VCARD, mailto:, tel:, or text string to audit before printing.
logoAreaPctNoRequested center-logo cutout percentage (0..30) evaluated against Reed-Solomon error correction capacity (defaults to 0 when no center logo is used).
physicalSizeMmNoPrinted sticker width in millimeters used to check minimum module width and scan distance (defaults to 28).
quietZoneModulesNoQuiet-zone margin width in QR modules around all 4 sides (ISO/IEC 18004 requires >= 4; defaults to 4).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered without the description. The description usefully adds the audit scope (expiry heuristics, homoglyph detection, WCAG contrast, Reed-Solomon budget), but says nothing about how findings are surfaced, whether anything is auto-corrected, or how severity is reported.

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?

It is a single front-loaded sentence with the action first and the capability list after, and no filler text. The dense jargon enumeration (punycode xn-- homoglyphs, inverted dark-background polarity) is compact but reduces readability at a glance.

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 seven parameters and no output schema, the description carries the burden of explaining what the audit returns, and it does not. The input side is fully covered by the schema and annotations, but an agent cannot predict the response shape or what to do with failures.

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 input schema; baseline 3 applies. The description does loosely tie its checks to specific parameters (contrast to fgColor/bgColor, center-logo budget to logoAreaPct), but adds no thresholds, defaults, or format guidance beyond what the schema states.

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 opens with a specific verb and resource ("Audits a QR URL or static payload") and then enumerates the exact defect classes it inspects. That makes the tool's function unmistakable, but it never names or contrasts itself with siblings like clean_qr_tracking_url or compile_permanent_qr_asset, so sibling differentiation is left to inference.

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 or when-not-to-use guidance, and no prerequisites or conditions are stated. An agent must infer from the check list that this is a pre-print validation pass, and cannot tell from this definition whether the sibling clean_qr_tracking_url should be run before or instead of it.

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