Skip to main content
Glama
iftahs
by iftahs

debayer

debayer

Convert raw Bayer CFA frames into full-color RGB images using VNG, SuperPixel, or Bilinear demosaicing. Auto-detect pattern from BAYERPAT, run after cosmetic correction for astrophotography workflows.

Instructions

Debayer CFA frames (pattern Auto reads BAYERPAT; ASI2600MC = RGGB) with VNG (default) / SuperPixel / Bilinear. Run AFTER cosmetic correction. Async with per-frame progress.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNo
filesYes
methodNo
out_dirNo
patternNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

The description meaningfully adds behavior beyond the annotations by stating 'Async with per-frame progress.' It also warns about source-pattern handling ('Auto reads BAYERPAT'). However, it does not disclose what side effects occur on disk, how output paths are determined, or what happens if no pattern can be detected, so the behavior is only partially transparent.

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?

Every sentence in the description earns its place: action, allowed methods, default, pipeline position, and async behavior are all packed into two short lines. It is structured and front-loaded, with no filler or repetition of the schema.

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 five-parameter tool with no output schema and 0% schema descriptions, the description is not complete enough for an agent to invoke it correctly without guessing at files, wait, and out_dir semantics. The workflow ordering and async note help, but the lack of output/behavior detail and parameter guidance leaves important gaps.

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 description coverage is 0%, and the description must compensate for five parameters. It does enrich two of them: 'VNG (default)' clarifies the method enum and 'pattern Auto reads... ASI2600MC = RGGB' explains the pattern default, but files, wait, and out_dir receive no semantic guidance.

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 operation ('Debayer CFA frames'), the input resource, and the algorithm choices, with a concrete pattern example (ASI2600MC = RGGB). It also places the tool in the pipeline ('Run AFTER cosmetic correction'), which clarifies it among the large set of sibling image-processing tools.

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?

The description explicitly says when to call it ('Run AFTER cosmetic correction') and indicates the default method, which is a clear workflow placement. It does not explicitly exclude any alternative or describe when another tool should be used, but the pipeline ordering is enough to remove a major ambiguity in this processing chain.

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