Skip to main content
Glama

extract_exr_part

Extract a single part from a multi-part EXR by name or index and save it as a new single-part EXR file in a non-destructive output directory.

Instructions

Extract a single part from a multi-part EXR and save it as a new single-part EXR file.

Specify the target part by name (e.g. 'C', 'AO') or by index. Name takes precedence.
Output is written to <source_dir>/<part_name>/<source_filename>.
The output directory must not already exist (non-destructive).
Only essential header attributes are carried over; renderer-specific metadata
(render times, camera matrices, etc.) is omitted since the source file retains
the full record.
For tiled images, the result reports whether lower-resolution tile levels were discarded.

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

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute path to the source EXR file
part_nameNoName of the part to extract (e.g. 'C', 'AO'). Takes precedence over part_index.
part_indexNoIndex of the part to extract (0-based). Used when part_name is not specified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the exact output path pattern, the non-destructive constraint, that renderer metadata is dropped while the source stays intact, and that tiled images may lose lower-resolution levels with that fact reported. It does not say what happens on a missing part name or invalid index, which is the main remaining gap.

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?

Front-loaded with the action, then the selection rule, then output location, then side effects. Six short sentences, each conveying a distinct operational fact with no padding.

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?

No output schema exists, so the description should cover returns; it does partially by noting the tile-level discard report, but says nothing else about the result object. For a file-mutating tool with zero annotations it covers safety and destination well enough to call correctly.

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% and both optional parameters already document the precedence rule and 0-based indexing, so the description largely restates the schema. The example part names ('C', 'AO') add a little practical meaning but no format or edge-case detail beyond the schema.

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?

States a specific verb and resource: extract one part from a multi-part EXR and write it as a new single-part EXR. This is clearly distinguished from every sibling, which are read-only inspection tools — this is the only one that produces a file.

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 precondition (output directory must not already exist) and the name-vs-index precedence rule give clear context for calling it. It never names an alternative or an explicit when-not condition, but the output-writing nature of the tool already makes the distinction obvious against the sibling inspectors.

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