Skip to main content
Glama

Make QR code

make_qr_code

Save a QR code for a link or text as a scalable SVG file. Specify an output path or use the default qr-code.svg, then get the saved file path.

Instructions

Save a QR code for a link or any text as an SVG file (sharp at any size). Defaults to qr-code.svg in the working directory. Returns the saved path.

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": {
      "text": "<text>"
    },
    "name": "make_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe link or text to encode.
outputNoWhere to save the result. Defaults to a new file next to the input.

Output Schema

NameRequiredDescriptionDefault
notesYesAnything the output does not carry over from the input.
summaryYesOne line describing the result.
writtenYesPaths of the files written, in order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this as a non-read-only, non-destructive, non-idempotent, closed-world write. The description adds value beyond them: it discloses that a file is written to disk, gives the default path (qr-code.svg in the working directory), notes the vector output is sharp at any size, and states the return value is the saved path. It does not say what happens on overwrite of an existing file, which is the main remaining gap.

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 with the action and output format front-loaded, then the default path, then the return value. Nothing is redundant and no sentence could be removed without losing information an agent needs.

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 two-parameter generation tool with an output schema and full annotation coverage, this is nearly sufficient: the agent knows what it produces, where it lands by default, and what comes back. Only the overwrite/name-collision behavior and the description-vs-schema default-path discrepancy keep it from being fully complete.

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%, so both parameters are already documented, and the description only echoes the destination default. It actually introduces a mild conflict: the description says the default is 'qr-code.svg in the working directory' while the schema says 'a new file next to the input' (which also presupposes an input file that does not exist here). Baseline 3 is right; the extra text does not add reliable meaning.

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?

"Save a QR code for a link or any text as an SVG file" names a specific verb (save), a specific resource (QR code encoding arbitrary text), and the output format (SVG). No sibling tool produces QR codes, so an agent can immediately tell this apart from the PDF/audio/Office conversion tools in the catalog.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'for a link or any text' establishes the input domain, and the default filename shows it is a standalone generation step. There is no explicit when-to-use/when-not guidance or named alternative, but with no sibling capable of QR generation there is little genuine ambiguity to resolve.

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