Skip to main content
Glama

qr_open

Validate a QR-code URL, show risk flags, and open it in the system browser only after confirmation, blocking unsafe schemes, private hosts, and non-allowlisted hosts.

Instructions

Validate and optionally open a QR-code URL in the system browser. IMPORTANT: show the URL and its risk flags to the user before calling with confirm=true. Without confirm=true this tool only validates and reports; it never opens anything. Blocks file/javascript/data schemes, private/loopback hosts (SSRF) and hosts outside QRMCP_URL_ALLOWLIST.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "qr_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL to open. Omit when using image=.
imageNoDecode this image and open its first URL instead
confirmNoMust be true to actually launch the browser
dry_runNoValidate only, never open even if confirm=true
new_tabNoOpen in a new tab when supported
allowlistNoOverride QRMCP_URL_ALLOWLIST for this call
allow_privateNoAllow hosts resolving to private/loopback IPs

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the safety burden well: it discloses that nothing is opened unless confirm=true, that blocked schemes include file/javascript/data, that private/loopback hosts are rejected (naming SSRF), and that an allowlist governs hosts. It omits what error reporting or the 'risk flags' output look like, though an output schema exists to cover the latter.

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

Conciseness4/5

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

Front-loaded with purpose, then the safety rule, then the enforcement policy; every sentence carries operational weight. There is mild redundancy between 'optionally open' and the later 'it never opens anything' clause, but it reinforces the highest-stakes behavior.

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 7-parameter, no-annotation tool with a real side effect (launching a browser), the description covers gating, security blocks, and policy override. Remaining gaps (dry_run interaction, return shape) are covered by the full-coverage schema and the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description still adds meaning by explaining what confirm=true actually does and by naming QRMCP_URL_ALLOWLIST as the policy the allowlist parameter perturbs. The url-vs-image choice and dry_run precedence remain schema-only, which is acceptable at full coverage.

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?

States a specific verb pair (validate, optionally open) and a specific resource (a QR-code URL in the system browser), and the phrase 'Without confirm=true this tool only validates and reports' makes it distinguishable from qr_decode/qr_parse, which presumably only decode. An agent can select this tool without opening the schema.

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

Usage Guidelines4/5

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

Gives explicit when-to-use direction for the critical flag ('show the URL and its risk flags to the user before calling with confirm=true') and states the default no-open behavior. It does not reconcile confirm=true with dry_run or mention when to prefer qr_decode instead, so it stops short of full alternatives guidance.

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