Skip to main content
Glama

get_dpx_pixel_stats

Compute per-channel DPX pixel statistics including min, max, mean, percentiles, and NaN/Inf counts to validate image data and detect invalid pixels.

Instructions

Compute pixel statistics per channel: min, max, mean, percentiles (p25/p50/p75/p95),
and NaN/Inf pixel counts. Integer DPX (e.g. 10-bit Cineon log) is normalized to 0-1;
floating-point DPX is reported as-is. See the stats_note field for details.

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_dpx_pixel_stats"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.1
    • addedInput schema / properties / subimage
      Added value: +{
      +  "default": 0,
      +  "description": "Image element index (0-based) for multi-element DPX",
      +  "minimum": 0,
      +  "title": "Subimage",
      +  "type": "integer"
      +}
  2. First observedv0.3.0

TDQS

A3.8/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 disclose the most consequential non-obvious behavior: integer DPX is normalized to 0-1 while float DPX is reported as-is, which directly affects how an agent interprets returned numbers. It also points to the stats_note field for nuance, but says nothing about failure modes, file-size limits, or whether the read is fully in-memory.

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?

Two tight sentences, metrics front-loaded, then the normalization rule that governs interpretation. Every clause earns its place with no 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?

For a four-parameter read-only stats tool with no output schema, the description is nearly sufficient: it lists the returned statistics and explains value scaling. The only shortfall is that the actual return structure (per-channel objects, stats_note content) is only alluded to rather than characterized.

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 the schema already documents channels, subimage, file_path, and ignore_nan. The description adds no parameter-level meaning beyond that (e.g., how channels interact with subimage or what a missing channel name does), so baseline 3 applies.

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?

The description opens with a specific verb+resource ('Compute pixel statistics per channel') and enumerates the exact metrics returned (min, max, mean, percentiles, NaN/Inf counts). It clearly separates this from the header/info siblings by scoping to pixel-level computation, though it never names an alternative explicitly.

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?

Usage is only implied: a valid DPX file_path is required and the tool computes stats on it. There is no explicit guidance on when to prefer this over get_dpx_header/get_dpx_info, nor any stated prerequisites (valid path, subimage availability, read cost).

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