Skip to main content
Glama

get_exr_pixel_stats

Compute per-channel EXR pixel statistics—min, max, mean, percentiles, and NaN/Inf counts—to support QC and brightness analysis.

Instructions

Compute pixel statistics per channel: min, max, mean, percentiles (p25/p50/p75/p95),
and NaN/Inf pixel counts. Useful for QC and brightness analysis.

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": {
      "file_path": "<file_path>"
    },
    "name": "get_exr_pixel_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelsNoChannel names to compute stats for; null means all channels
file_pathYesAbsolute path to the EXR file
ignore_nanNoExclude NaN/Inf values from statistics
part_indexNoPart index (0-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully enumerates the returned metrics, but says nothing about read-only nature, how NaN/Inf are counted vs excluded, behavior on missing channels or non-EXR files, or cost on large images. Adequate but with real gaps for a no-annotation 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?

Two sentences, front-loaded with the core action and an enumerated metric list that earns its space. Minor redundancy in listing both 'min, max, mean' and the percentile set, but nothing extraneous.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description partly compensates by listing return metrics, and the 4-parameter schema is well documented. However, it omits error/rejection behavior and result structure (per-channel mapping), which matter for a stats tool operating on multi-part EXR files.

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 coverage is 100%, so the baseline would be 3, but the description adds meaning by tying NaN/Inf counts to the ignore_nan behavior, clarifying what that flag governs in the results. It still doesn't clarify part_index semantics or channel-name resolution beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb+resource: 'Compute pixel statistics per channel' followed by the exact metrics returned (min, max, mean, p25/p50/p75/p95, NaN/Inf counts). An agent knows precisely what it gets back. It does not name the format-alternative siblings (get_dpx_pixel_stats, get_tx_pixel_stats), though the tool name already encodes EXR specificity.

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?

'Useful for QC and brightness analysis' implies the use context but gives no explicit when-to-use vs alternatives, no exclusions, and no pointer to sibling pixel-stat tools or to get_exr_channels/compare_exr_channels. Usage is inferred rather than stated.

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