Skip to main content
Glama

qr_detect

Locate QR symbols in an image without decoding to get bounding boxes and corner points for cropping before repair, with deduplicated results across detection engines.

Instructions

Locate QR symbols in an image without decoding. Returns bounding boxes and corner points, useful for cropping before qr_repair. Deduplicates results across engines.

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": {
      "image": "<image>"
    },
    "name": "qr_detect"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesLocal path, base64, data URI or http(s) URL
max_variantsNoHow many preprocessing variants to try

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose output shape (bounding boxes and corner points) plus cross-engine deduplication. It omits what happens when nothing is found, whether the multi-engine/multi-variant sweep is expensive or slow, and any permission or size constraints on the image input.

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 zero filler; the core purpose is front-loaded and the return values and workflow hint follow in priority order. Every clause carries information an agent can act on.

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 localization tool with an output schema already describing return values, this is nearly complete: purpose, output kind, deduplication behavior, and downstream use are all covered. The only gap is failure/no-detection behavior, which matters when deciding whether to retry or fall through to another tool.

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 'image' input formats and 'max_variants' semantics are already documented in the schema. The description adds nothing beyond that about parameter behavior, which is the expected baseline when the schema does the work.

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?

The description gives a specific verb and resource ('Locate QR symbols in an image') and immediately scopes it with 'without decoding', which separates it from the sibling qr_decode. It also names the downstream consumer (qr_repair), so an agent can place the tool in a workflow without opening any 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?

It states the operative context clearly: use this for localization and cropping before qr_repair, and implicitly not when you need decoded payloads. There is no explicit 'do not use for X' exclusion or a named alternative for the decode path, so guidance is strong but not fully prescriptive.

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