Skip to main content
Glama

Get QR Code

get_qr_code
Read-onlyIdempotent

Get the QR code for a short link. Returns a direct PNG URL and the QR code image inline (PNG, max 512px).

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

Input Schema

NameRequiredDescriptionDefault
sizeNoQR image size in pixels (100-1000, default 300)
colorNoForeground hex color without # (default 000000)
short_codeYesThe short code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description usefully adds the return shape (direct PNG URL and inline image), but it also asserts "max 512px" while the schema's size parameter accepts 100-1000, which muddies rather than clarifies behavior.

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?

Two short sentences: the action first, the return value second. No filler, no repetition of the title, and the most decision-relevant information is front-loaded.

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 no output schema, the description carries the return-value burden and does so by describing both the URL and the inline image. Minor gaps remain — behavior for links without QR customization and the 512px versus 1000px size discrepancy — but nothing essential to invoking the tool 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 coverage is 100% and each parameter carries its own description with ranges and defaults, so the baseline of 3 applies. The description adds no parameter meaning and its "max 512px" claim actually conflicts with the documented size range, so it earns no credit above baseline.

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 names a specific verb and resource ("Get the QR code for a short link") and states what is returned (direct PNG URL plus inline PNG image). That is enough to distinguish it from get_qr_settings and update_qr_settings, which are clearly about configuration rather than the image itself, though no sibling is named explicitly.

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 when-to-use guidance: nothing says to call get_qr_settings first to read defaults, or when to prefer the returned URL over the inline image. The only contextual hint is "for a short link," which is implied by the required short_code parameter rather than stated as usage guidance.

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