Skip to main content
Glama

Create QR code

create_qr_code
Read-onlyIdempotent

Creates a QR code picture for a link or a text, with optional colours, module shapes, border, error correction, a centre logo from an image link and a heart shaped design. Returns permanent links to the PNG and the SVG (no account, no expiry), a download link and a 512 px preview image. Does not create short links or count scans: the code contains exactly the given data.

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": {
      "data": "<data>"
    },
    "name": "create_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
bgNoBackground colour as hex, one of the names listed for fg, or transparent. Default white.
fgNoColour of the code as hex, for example #1a2b3c, or one of these names: black, white, red, lime, green, blue, yellow, cyan, aqua, magenta, fuchsia, silver, gray, grey, maroon, olive, purple, teal, navy, orange, pink, gold, eventpics. Other names are not understood. Default black (red for the heart). Keep it dark: light codes on a light background do not scan.
eclNoError correction L, M, Q (default) or H. Higher survives damage and dirt but makes the code denser. The heart always uses H.
dataYesThe link or text the QR code should contain, for example https://example.com/menu. Pass it as it is, not URL-encoded. Max 1200 characters; shorter content gives a code that is easier to scan.
dotsNoShape of the small modules. dots: every module a separate circle. square: plain squares. rounded and extra-rounded: neighbouring modules join, outer corners slightly or strongly rounded. classy and classy-rounded: leaf-like, two opposite corners rounded. Default rounded.
eyesNoShape of the ring of the three corner markers. dot: one round ring (a circle). dots: a ring made of many small circles. square, rounded, extra-rounded: a square ring with sharp, slightly rounded or strongly rounded corners. Default extra-rounded.
logoNoOptional https link to a logo image (PNG, JPEG, GIF or SVG, max 1 MB) to place in the centre, for example the company logo of the website the code points to. Use a square logo file, not a banner or a tiny favicon. Error correction is raised to H automatically. Not available for the heart design. If the image cannot be used, the code is created without it and notes say why.
sizeNoWidth and height in pixels, 100 to 3000. Default 1024 for PNG and 512 for SVG (an SVG scales freely, the number only sets its nominal size).
designNostandard (default) is a classic square code. heart shapes the whole code like a heart, in red unless fg says otherwise; nice for weddings and invitations.
formatNopng (default) for documents, chats and social media; svg for print and design tools, since it scales without losing sharpness.
marginNoEmpty border around the code, counted in modules (the small squares). Scanners need it to find the code. Default 4; the heart never goes below 2.
eyesInnerNoShape of the centre of the three corner markers. dot: one round centre. dots: nine small circles. square, rounded, extra-rounded: a square centre with sharp, slightly rounded or strongly rounded corners. Default extra-rounded.

Output Schema

NameRequiredDescriptionDefault
urlYesPermanent link to the picture in the requested format.
sizeYes
notesYesValues the API adjusted, if any.
designYes
formatYes
png_urlYes
svg_urlYes
download_urlYesSame picture, sent as a file download.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / logo
      Added value: +{
      +  "description": "Optional https link to a logo image (PNG, JPEG, GIF or SVG, max 1 MB) to place in the centre, for example the company logo of the website the code points to. Use a square logo file, not a banner or a tiny favicon. Error correction is raised to H automatically. Not available for the heart design. If the image cannot be used, the code is created without it and notes say why.",
      +  "format": "uri",
      +  "maxLength": 2000,
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / dots / description
      Previous value: -"Shape of the small modules. Default rounded."New value: +"Shape of the small modules. dots: every module a separate circle. square: plain squares. rounded and extra-rounded: neighbouring modules join, outer corners slightly or strongly rounded. classy and classy-rounded: leaf-like, two opposite corners rounded. Default rounded."
    • changedInput schema / properties / eyes / description
      Previous value: -"Shape of the three outer corner squares. Default extra-rounded."New value: +"Shape of the ring of the three corner markers. dot: one round ring (a circle). dots: a ring made of many small circles. square, rounded, extra-rounded: a square ring with sharp, slightly rounded or strongly rounded corners. Default extra-rounded."
    • changedInput schema / properties / eyesInner / description
      Previous value: -"Shape of the centre of the three corner squares. Default extra-rounded."New value: +"Shape of the centre of the three corner markers. dot: one round centre. dots: nine small circles. square, rounded, extra-rounded: a square centre with sharp, slightly rounded or strongly rounded corners. Default extra-rounded."
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations declare read-only, idempotent and non-destructive, and the description adds genuinely new behavioral facts: outputs are permanent links with no account and no expiry, a download link and 512 px preview are returned, error correction is auto-raised to H when a logo is supplied, and a failed logo silently degrades to a code without it while noting why. These failure and persistence semantics are exactly what annotations cannot convey.

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?

Two sentences, front-loaded with the action and followed by the output contract and the scope exclusion — no filler. The middle clause listing the decorative options is slightly list-like padding since the schema documents each one, but it usefully signals the tool's breadth at a glance.

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?

With 12 parameters, full schema coverage, an output schema and annotations present, the description supplies everything not already structured: what is returned, link permanence, degradation behavior for logos, and the boundary against short-link/scan-counting tools. Nothing an agent needs in order to call this correctly is missing.

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% and each parameter carries rich inline documentation (colour names, enum shape meanings, defaults, limits), so the schema does the heavy lifting. The prose only summarizes the option categories at a high level and adds no per-parameter meaning beyond that, making the baseline 3 correct.

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 opens with a specific verb and resource ("Creates a QR code picture for a link or a text") and immediately enumerates the option space (colours, module shapes, border, error correction, centre logo, heart design). It goes further by stating the output form (PNG/SVG links, download link, preview), so an agent knows exactly what will be produced without opening the schema.

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

Usage Guidelines4/5

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

It gives a clear negative boundary — "Does not create short links or count scans: the code contains exactly the given data" — which rules out a plausible misreading of the tool. There are no siblings to route between, so no alternative needs naming; the only gap is the absence of explicit when-to-prefer guidance (e.g. PNG vs SVG choice is left entirely to the schema).

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.