Skip to main content
Glama

Gookit Barcode Tools

Generate a QR code

generate_qr
Read-onlyIdempotent

Make one static QR code for a link or plain text, as a PNG image and/or SVG markup, with the same rules as gookit.co/qr-code-generator. The content goes straight into the code: no redirect, no tracking, no expiry. Up to 250 bytes of UTF-8; a 1024 px PNG needs content under 100 bytes. One code per call.

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": {
      "content": "<content>"
    },
    "name": "generate_qr"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoApproximate PNG width and height in px. 1024 only for content under 100 bytes; SVG scales to any size.
colorNoColour of the dark modules, as #rrggbb. The background is white.#000000
formatNopng
contentYesA link or plain text, up to 250 bytes as UTF-8.
content_typeNourl: checked as a link; https:// is added when there is no scheme. text: encoded as is.url
error_correctionNoL 7%, M 15%, Q 25%, H 30% of the code can be damaged and still scan. Higher makes a denser code.M

Output Schema

NameRequiredDescriptionDefault
pngNo
svgNo
noteNo
colorYes
modulesYesModules per side, without the quiet zone.
payloadYesExactly what the QR code encodes.
next_stepNoOne line naming the Gookit product for the next step, such as printing labels. Not part of the result.
contrast_warningNo
error_correctionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With readOnly/idempotent/non-destructive annotations already covering the safety profile, the description still adds real behavior: content is encoded straight into the code with no redirect, tracking or expiry, and there are hard size limits (250 bytes, 1024 px only under 100 bytes). It does not describe error behavior for invalid URLs or how failures are 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?

Four compact sentences, front-loaded with the core action and format, then limits. Every clause carries information; the only soft spot is the pointer to gookit.co/qr-code-generator, which conveys little on its own.

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?

An output schema exists, so return values need no explanation, and the description covers format, size, encoding semantics and the one-code-per-call contract. Only error/validation behavior and how SVG markup is delivered are left unaddressed.

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

Parameters4/5

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

Schema coverage is high (83%), so the baseline is 3, but the description adds meaning beyond the schema: the 250 limit is in UTF-8 bytes (the schema's maxLength is character-based), and it ties the size parameter to content length ('1024 px PNG needs content under 100 bytes'). Slight deduction for not clarifying the idiomatic use of format='both'.

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?

States a specific verb and resource ('Make one static QR code') plus the input kinds (link or plain text) and outputs (PNG image and/or SVG markup). 'Static', 'one code per call' and the format options make it distinguishable at a glance from a barcode or SKU generator.

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: 'One code per call' tells the agent to loop for multiple codes, and 'no redirect, no tracking, no expiry' clarifies that this is not a shortener. There is no explicit when-to-use versus siblings such as generate_barcode, and the delegate-to 'gookit.co/qr-code-generator' rules are an external reference the agent cannot read.

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