Skip to main content
Glama

QRPainter

export

Export a code as SVG (vector, one path per colour) or PNG at a given pixel size.

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": {
      "code_id": "<code_id>",
      "edit_key": "<edit_key>"
    },
    "name": "export"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo
formatNo
code_idYes
edit_keyYesReturned when the code was created.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it omits the most consequential behavior: what the call returns (a URL, bytes, or base64 payload), whether exports are counted or rate limited, and what authorization the required edit_key implies. It does add a genuinely useful detail that SVG output is vector with one path per colour, but that is the only behavioral disclosure.

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?

A single front-loaded sentence with the format options and the sizing rule packed into it, and no filler whatsoever.

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?

With no annotations, no output schema, and 4 parameters at 25% coverage, the definition is too thin for an export tool whose return value (asset URL vs binary) determines how the agent proceeds. The missing return-shape and authorization context is a material gap.

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 only 25% (just edit_key), so the description must compensate, and it partly does by clarifying that size is in pixels and what each format produces. It leaves a real ambiguity unresolved: whether size has any effect when format is svg, and it says nothing about code_id.

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?

Names a specific verb (export) and resource (a code) and enumerates the two output formats, which cleanly separates it from siblings like get_scans or preview_styles. It stops short of 5 because 'a code' is only inferable from context rather than stated (e.g. a QR code by id).

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 or when-not-to-use guidance, no mention of prerequisites such as ownership or the edit_key requirement, and no steering between this and preview_styles. The agent must infer that this is the terminal step after save_design.

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