Skip to main content
Glama

Add QR code to postcard

spur_add_postcard_qr_code
Idempotent

Put a tracked QR code on the back of one of the user's postcard templates and show the preview. Each mailed postcard gets its own code under the chosen QR code, so scans are tracked per recipient (spur_get_qr_code_activity).

Placement: position="auto" fills the back's QR slot (an element with class qr-box, qr-code-box, qr-placeholder or qr-callout-box, as Spur's gallery designs have) and otherwise goes in the bottom-right of the message area, left of the address block and above the USPS barcode. Corners (top_left, top_right, bottom_left, bottom_right) and x_inches/y_inches place it in the message area; spots in the USPS clear zone are refused. Replaces any QR already on the card. If it lands on the message text, call again with another corner or move the text.

Create a QR code first with spur_create_qr_code if spur_list_qr_codes has none that fits.

Input Schema

NameRequiredDescriptionDefault
positionNoWhere to place the code on the back; auto fills the design's qr-boxauto
x_inchesNoLeft edge, inches from the bleed's left edge (with y_inches; overrides position)
y_inchesNoTop edge, inches from the bleed's top edge (with x_inches)
qr_code_idYesQR code id from spur_list_qr_codes or spur_create_qr_code
size_inchesNoEdge length when placed in the message area (not used for a slot). 0.75in or more scans reliably
template_idYesPostcard template id (UUID from a Spur list/search tool)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: it replaces any existing QR on the card, refuses USPS clear-zone positions, falls back to bottom-right when no QR slot exists, and shows a preview. These details materially help an agent predict the tool's side effects and recovery path.

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 front-loaded with the core action and remains organized around placement, replacement, and prerequisites. It is slightly dense and long for a tool definition, but nearly every sentence carries useful operational detail for a complex placement operation.

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 six parameters, no output schema, and placement-sensitive behavior, the description covers the key invocation details: prerequisites, fallback placement, rejected zones, replacement behavior, and preview. An agent has enough information to call it correctly without needing further clarification.

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 already 100%, but the description adds real meaning beyond the schema: it explains what `position="auto"` actually targets, how corners and `x_inches`/`y_inches` are interpreted, and why `size_inches` matters for scan reliability. This is substantive parameter guidance, not repetition.

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 states a specific verb and resource: put a tracked QR code on the back of the user's postcard template and show the preview. It clearly separates this from QR creation (`spur_create_qr_code`), QR listing, and tracking activity (`spur_get_qr_code_activity`).

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

Usage Guidelines5/5

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

It gives an explicit prerequisite: create a QR code first with `spur_create_qr_code` if `spur_list_qr_codes` has none that fits. It also gives corrective guidance if placement overlaps message text and explains the automatic fallback when no QR slot exists.

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.

Resources