Skip to main content
Glama

get_qr

Read-only

Generate a QR code image for a short link using its link ID, with options for logo, color, print variant, and PNG or SVG output; the link itself is not changed.

Instructions

Generate a QR code image that opens the short link. The image is returned as an image block. Read-only: it does not change the link.

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": {
      "id": "<id>"
    },
    "name": "get_qr"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesLink id (UUID) as returned by shorten_url, shorten_urls or list_links.
logoNoPut the LinkBit logo in the center of the code.
colorNoOptional QR color.
printNoUse the print-oriented variant of the code.
formatNoImage format. Defaults to png.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.0.5
    • addedInput schema / properties / color / description
      Added value: +"Optional QR color."
    • addedInput schema / properties / format / description
      Added value: +"Image format. Defaults to png."
    • addedInput schema / properties / format / enum
      Added value: +[
      +  "png",
      +  "svg"
      +]
    • addedInput schema / properties / id / description
      Added value: +"Link id (UUID) as returned by shorten_url, shorten_urls or list_links."
    • addedInput schema / properties / logo / description
      Added value: +"Put the LinkBit logo in the center of the code."
    • addedInput schema / properties / print / description
      Added value: +"Use the print-oriented variant of the code."
  2. First observedv1.0.4

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds context the annotations do not: the output is delivered as an image block rather than text or JSON, which matters for an agent with no output schema. It does slightly restate the read-only/non-mutating guarantee already given by annotations, which keeps it from a 5.

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

Conciseness5/5

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

Three short sentences, zero filler, with the core action front-loaded and the return format and side-effect guarantee following in order of importance. Nothing is redundant or padded.

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?

For a five-parameter read tool with no output schema, the description covers the action, the return type (image block), and the non-mutating guarantee. It omits edge behavior such as what happens with an unknown link id or whether the id must belong to the caller, which would round out the definition but are minor gaps.

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% and includes descriptions for all five parameters, including the required link id and the png/svg enum, so the schema already carries parameter meaning. The description adds nothing about logo, color, print, or format beyond what the schema states, making the baseline 3 correct.

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 states a specific verb and resource ("Generate a QR code image that opens the short link"), which is unambiguous and clearly different from siblings like shorten_url, list_links, or update_link. No sibling overlap exists for QR generation, so no explicit differentiation is required, though none is offered.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternatives are named. The purpose sentence implies the use case (produce a QR for an existing link), but the agent must infer that a link id must already exist and that this is the only QR-producing tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.