Skip to main content
Glama
thenavidm
by thenavidm

Retrieve a QR code

get_qr_code
Destructive

Generate a QR code for a URL and save it to a specified file, with options for size, colors, logo, and error correction.

Instructions

Retrieve a QR code for a link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to generate a QR code for.
logoNoThe logo to include in the QR code. Can only be used with a paid plan on Dub.
sizeNoThe size of the QR code in pixels. Defaults to `600` if not provided.
levelNoThe level of error correction to use for the QR code. Defaults to `L` if not provided.L
marginNoThe size of the margin around the QR code. Defaults to 2 if not provided.
accountNoExact configured private workspace profile label; not a tenant or provider account ID.
confirmNoMust be true for the requested mutation or exclusive private output file.
bg_colorNoThe background color of the QR code in hex format. Defaults to `#ffffff` if not provided.#FFFFFF
fg_colorNoThe foreground color of the QR code in hex format. Defaults to `#000000` if not provided.#000000
hide_logoNoWhether to hide the logo in the QR code. Can only be used with a paid plan on Dub.
output_fileYesRequired absolute new private file. Exclusive 0600 creation; never overwrites or echoes PNG/embed credentials.
include_marginNoDEPRECATED: Margin is included by default. Use the `margin` prop to customize the margin size.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.6/5.0
Behavior1/5

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

Annotations declare readOnlyHint=false and destructiveHint=true, but the description's only verb, 'Retrieve,' frames the call as a harmless read. The description never discloses that the tool creates an exclusive 0600 file on disk, that confirm must be true, or that logo/hide_logo require a paid plan. The read framing actively contradicts the declared write/destructive profile.

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

Conciseness3/5

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

The single sentence is front-loaded and free of filler, but it is drastically undersized for a 12-parameter file-writing tool. It is concise only in the sense of being minimal, not in the sense of being efficiently complete.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 12 parameters, no output schema, two required args, and a destructive file write, the description omits every operational detail an agent needs. It conveys the high-level resource but leaves the file/confirm/paid-plan mechanics entirely to the schema and annotations.

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%, so the schema already documents all 12 parameters in detail. The description adds nothing about output_file, confirm, logo, size, level, or the deprecated include_margin, so the baseline 3 applies.

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?

States a concrete verb (retrieve), resource (QR code), and scope (for a link), so the agent can tell what the tool produces. It does not distinguish itself from any sibling, but there is no competing QR tool in the list, so a 4 is fair rather than a 5.

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, when-not-to-use, or prerequisite guidance. Nothing tells the agent that output_file and confirm are mandatory, or that this should be preferred over any alternative. Usage is only implied by the name.

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