Skip to main content
Glama

Make a QR code picture

get_qr_code
Read-onlyIdempotent

Make a QR code as a PNG picture, ready to print, download or send. Pass link_id (a tracked link from list_links, or one just made with create_link) to encode its short address: it works at once, even before the site is published, and every scan is counted like a click. Or pass url for any https address. For "a QR code for my website": list_links for a link to the homepage, or create_link (destination page "/") when there is none, then call this with its id. The picture comes back attached to the reply (qr_image_url); in WhatsApp and Slack it is sent as an image, so never paste its address into the reply. A paused link is refused. Saves nothing in the site.

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": {
      "site_id": "<site_id>"
    },
    "name": "get_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoAny full https:// address to encode, when no tracked link is wanted
link_idNoA tracked link id from list_links or create_link
site_idYesThe site, from list_sites
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent read, but the description adds real behavior beyond them: the QR works immediately even before the site is published, scans are counted like clicks, nothing is saved in the site, paused links are rejected, and the image arrives attached to the reply via `qr_image_url`. The channel-specific warning ('in WhatsApp and Slack it is sent as an image, so never paste its address into the reply') is exactly the kind of operational detail annotations cannot carry.

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 content is front-loaded with the action and the two input paths before the workflow example and delivery details. It is fairly dense and the workflow sentence is long, but nearly every clause carries operational information rather than restating the schema.

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 no output schema present, the description compensates by describing the return explicitly (`qr_image_url`, image attachment, channel-dependent rendering). It also covers preconditions (paused link refused) and side effects (scan counting), so an agent has everything needed to call it and handle the result correctly.

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 100%, so the baseline is 3, but the description goes further by explaining what `link_id` implies (tracked short address, scan counting, works pre-publication) and by constraining `url` to https addresses. It does not explain `site_id` or `user_goal`, leaving those entirely to the schema, which keeps it short of a 5.

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 first clause states a specific verb and artifact: 'Make a QR code as a PNG picture, ready to print, download or send.' It also implicitly separates the tool from create_link/list_links by making clear this produces an image, not a link, so an agent can pick it out of the sibling set.

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 explicit selection rules between the two input paths (pass `link_id` for a tracked link, or `url` for any https address) and spells out an end-to-end workflow: 'For a QR code for my website: list_links for a link to the homepage, or create_link (destination page "/") when there is none, then call this with its id.' It also states an exclusion — 'A paused link is refused' — so the agent knows when the call will fail.

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