Skip to main content
Glama

qr_module_analysis

Analyzes each QR code module for sub-pixel color variations and non-uniform grayscale to detect steganography or watermarking anomalies.

Instructions

Module-level pixel analysis of QR code images. Examines individual modules (the black/white squares) for sub-pixel anomalies: color variation within a single module, non-uniform grayscale values, and deviations from expected pure black (0) or pure white (255). These anomalies can indicate LSB stego or watermarking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to QR code image file (BMP for best results)
thresholdNoBlack/white threshold (0-255, default: 128)
Behavior4/5

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

No annotations are provided, so the description carries full transparency burden. It details specific behavioral traits: examines modules for color variation, non-uniform grayscale, deviations from pure black/white, and links to LSB stego or watermarking. It does not cover return format or side effects, but the anomaly list is sufficiently informative.

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?

The description is two sentences with zero wasted words. It leads with the action, lists specific anomalies, and ends with the purpose (stego/watermarking). Every sentence earns its place.

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?

Given the complexity of module-level analysis and the absence of an output schema, the description covers the tool's input (QR image with threshold), detailed anomalies, and high-level purpose. It could be more complete by mentioning the output format (e.g., a report of anomalies), but it provides enough context for an agent to decide invocation.

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% with both parameters having descriptions (file_path and threshold). The tool description does not add new parameter information beyond the schema; it contextualizes the analysis but not the parameters themselves. Baseline 3 applies as the schema covers the parameters adequately.

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 uses specific verbs ('Examines individual modules') and clearly identifies the resource (QR code modules) and the anomalies sought (sub-pixel anomalies, color variation, LSB stego). It distinguishes from sibling tools like qr_detect and qr_compare by focusing on module-level pixel inspection.

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?

The description implies usage for stego/watermark detection but does not explicitly state when to use this tool versus alternatives (e.g., qr_compare, img_lsb_detect). No when-not or alternative guidance is provided, leaving the agent to infer context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/badchars/steganography-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server