Skip to main content
Glama

verify_qr

Rasterise a QR code, decode it in-function with jsQR, and verify that it scans cleanly and matches the expected payload, plus return a minimum print size hint.

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": "verify_qr"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo
payloadNoRaw QR payload text to verify (or pass type + fields instead).
backgroundNo#ffffff
foregroundNo#000000
error_correctionNoM

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden, and it does disclose real internals: rasterisation, in-function jsQR decoding, and the fact that it returns a minimum print-size hint. It stops short of saying what a failed verification looks like (error thrown vs. a validity flag) and whether the decoded payload is echoed back, which matters for a check-only tool.

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?

A single front-loaded sentence that covers mechanism, success criterion, and one return value with no filler. It is dense but readable, with only minor cost from stacking three clauses.

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 5-parameter tool with no annotations and no output schema, the description is thin: it omits the return shape for the pass/fail result, failure behaviour, and the meaning of most parameters. It names one return value (print size hint) but leaves the agent guessing about the primary output.

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

Parameters2/5

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

Schema coverage is only 20%: just payload has a schema description. The description adds 'expected payload' semantics for that one field, but says nothing about the type/fields alternative path, how background/foreground colour strings are interpreted, or what error_correction affects — leaving four of five parameters undocumented in both places.

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 names a specific verb and resource (verify a QR code) and spells out the mechanism: rasterise, decode with jsQR, check it scans cleanly and matches the expected payload. That is enough to separate it from the sibling create_qr 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 Guidelines3/5

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

Usage is only implied through the word 'verify' and 'matches the expected payload', which suggests a post-generation validation step. It never states when to prefer this over create_qr or what to do when verification fails, so the agent must infer the workflow.

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