Skip to main content
Glama

enhance_and_decode

Enhance a specific image region by applying upscale, sharpen, contrast, or denoise operations, then decode the QR code from that region.

Instructions

Apply enhancement operations to a region of the image, then decode.Enhancement strategy is decided by the Agent based on decode_qrcode_full diagnostics.Supports upscale, sharpen, adjust_contrast, denoise — composable in any order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bboxYesTarget region [x, y, width, height]
image_urlNoPublic image URL — use when the image is at a remote location.
image_pathNoLocal image absolute path — preferred when available.
operationsNoList of enhancement operations, applied in order.If omitted, crops the region and decodes directly (no enhancement).
image_base64NoBase64-encoded image — use when the image is in memory. Large images are auto-resized.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses composable operations, the fallback when operations are omitted (crops and decodes directly), and that the enhancement strategy is agent-decided based on diagnostics. It does not explicitly state side effects (e.g., whether the original image is modified), but no annotation contradiction exists and the disclosed behavior is meaningful.

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 compact and front-loaded, using three short sentences to convey the core action, strategic context, and supported operations. Every sentence contributes meaningful information without redundancy or filler.

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?

The tool has five parameters and no output schema, but the description covers the main behavioral aspects: enhancement strategy, supported operations, and the optional operations behavior. It does not explain the return value, but given the tool name and siblings, this is acceptable. It is complete enough for an agent to select and invoke it correctly.

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 description coverage is 100%, so the schema already documents parameters. The description adds value by explaining that operations are composable in any order and that omitting the operations list triggers direct decode of the cropped region—information not in the schema for the operations parameter. This exceeds the baseline for high 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?

The description clearly states the tool's function: 'Apply enhancement operations to a region of the image, then decode.' It uses a specific verb ('apply', 'decode') and resource ('image region'), and the phrase 'Enhancement strategy is decided by the Agent based on decode_qrcode_full diagnostics' distinguishes it from decode-only and enhance-only siblings.

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 provides clear context for when to use the tool: after obtaining diagnostics from decode_qrcode_full and when enhancement is needed. It does not explicitly mention exclusions or alternatives like auto_enhance, so it falls short of a 5 but gives solid guidance.

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/Endymionus/qr-reader-mcp-server'

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