Skip to main content
Glama

check_exr_validity

Validate that an EXR file opens correctly and optionally scan channels for NaN or Inf pixels to catch corrupted or invalid image data before processing.

Instructions

Validate that an EXR file can be opened and optionally scan for NaN/Inf pixels. By default scans all channels; specify channels to reduce I/O on large files.

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

Input Schema

NameRequiredDescriptionDefault
channelsNoChannels to scan; null means all channels. Use this to limit I/O.
file_pathYesAbsolute path to the EXR file
check_pixelsNoScan pixel data to detect NaN/Inf

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 exist, so the description carries the full burden. It usefully discloses that all channels are scanned by default and that scanning can be narrowed for I/O reasons, but it does not say what a failed validation looks like (exception vs. boolean), whether NaN/Inf results are returned as counts, or the cost of check_pixels on large files.

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 short sentences with the core action front-loaded and the performance hint second. No filler, though the second sentence is essentially duplicated in the schema.

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?

For a three-parameter, single-purpose validation tool with no output schema, the description covers the essentials: what is validated, that pixel scanning is optional, and the default scope. The main remaining gap is the shape of the result on success or failure, which matters slightly more given there is no output schema.

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 description coverage is 100%, so all three parameters are already documented, including 'null means all channels' and the check_pixels default. The description largely restates the channels/I-O advice already in the schema rather than adding new semantics such as channel name syntax or interaction between channels and check_pixels.

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?

States a specific verb and resource: validating that an EXR file can be opened, plus an optional NaN/Inf pixel scan. This is distinguishable from the info/header/pixel-stats siblings by the validation and defect-scan framing, though no sibling is named for contrast.

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?

Gives guidance on the channels parameter ('specify channels to reduce I/O on large files') and the default scanning behavior, which implies the tool's cost profile. It never says when to prefer this over get_exr_info or get_exr_pixel_stats, nor when validation alone suffices, so usage is only implied.

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