Skip to main content
Glama

API Keg — Barcode, QR & Label Sheet Engine

Generate Printable Barcode / QR Label Sheet

generate_label_sheet
Read-onlyIdempotent

Batch-encodes up to 200 QR or 1D barcodes into print-ready @page HTML/SVG label sheets formatted for Avery 5160 (30-up US Letter), Zebra 4x6 shipping thermal, or Zebra 2x1 retail/bin tags. Pricing: $0.002 base (up to $0.008 max ($0.002 base + $0.002 per 50 rendered labels, capped at $0.008 for up to 200 labels), x402 variable settlement). Pass ?dry_run=true on REST to validate schema free.

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": {
      "items": "<items>"
    },
    "name": "generate_label_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes1 to 200 barcode/QR label definitions to render onto print-ready sheets.
templateNoPrint stock layout: 'avery_5160' (3x10 US Letter 8.5x11in, 30/page), 'zebra_4x6' (4x6in shipping/pallet thermal), or 'zebra_2x1' (2x1in retail/shelf thermal).avery_5160
backgroundNoBackground hex color (#RGB or #RRGGBB, default '#FFFFFF').
foregroundNoForeground bar/module hex color (#RGB or #RRGGBB, default '#000000').
includePngNoAlso include lossless base64 PNGs alongside each label's inline SVG.
startOffsetNoBlank cells to skip on page 1 for partially used Avery 5160 sheets.
includeBarcodeTextNoRender human-readable text inside each barcode SVG (defaults to true for 1D, false for QR).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds materially useful traits beyond that: this is a paid operation with a concrete price ladder (base $0.002 up to a $0.008 cap) and x402 settlement, plus a free dry_run validation path on REST. The omission is what happens on invalid input or partial render failures, but the cost disclosure is a genuine value-add.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is well front-loaded and information-dense. The second sentence is poorly structured, with triple-nested parentheses ('$0.002 base (up to $0.008 max ($0.002 base + $0.002 per 50 rendered labels, capped at $0.008 for up to 200 labels), x402 variable settlement)') that is hard to parse and partly self-contradictory in its figure ordering.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With readOnly/idempotent annotations covering safety, the description supplies the missing pieces an agent needs before calling: output medium (HTML/SVG @page sheets), optional PNGs, size limits, and cost. Because there is no output schema, the return-value burden falls on the description, and it does sketch the payload, though it does not describe the response envelope or how the sheet is delivered.

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 coverage is 100%, so the schema already documents all seven parameters including enums and defaults. The description restates the template names (Avery 5160 30-up, Zebra 4x6, Zebra 2x1), which duplicates rather than extends the schema, and the pricing sentence ties label count to cost without clarifying how quantity interacts with the 200-label cap.

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 and resource ('Batch-encodes up to 200 QR or 1D barcodes into print-ready @page HTML/SVG label sheets') plus the exact target layouts, so the agent knows precisely what it produces. It does not name the sibling generate_barcode and explicitly say 'use that one for a single code', leaving the batch-vs-single distinction implicit in the word 'Batch-encodes'.

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

Usage Guidelines3/5

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

Usage is only implied: the 'up to 200' ceiling and the template list hint at this being the bulk path, and the dry_run tip gives a validation workflow. There is no explicit when-to-use vs. generate_barcode guidance and no statement of when this tool is the wrong choice (e.g., single label, unsupported symbology).

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