Skip to main content
Glama

get_tx_pixel_stats

Compute per-channel pixel statistics at a chosen MIP level, including min, max, mean, percentiles, and NaN/Inf counts. Use higher MIP levels for approximate stats on large TX textures.

Instructions

Compute pixel statistics per channel at the specified MIP level: min, max, mean,
percentiles (p25/p50/p75/p95), and NaN/Inf counts. Use a higher MIP level
(e.g. mip_level=4) for fast approximate statistics on large textures.

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

Input Schema

NameRequiredDescriptionDefault
channelsNoChannel names to compute stats for; null means all channels
file_pathYesAbsolute path to the TX file
mip_levelNoMIP level to sample (0 = full resolution, higher = smaller/faster)
ignore_nanNoExclude NaN/Inf values from statistics

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the computed metrics (min, max, mean, percentiles, NaN/Inf counts) and the MIP-level speed/approximation tradeoff. It does not explicitly state read-only behavior or error handling, but 'Compute' strongly implies a non-mutating read operation.

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?

The description is two sentences and front-loads the core purpose and computed statistics. The second sentence gives actionable MIP-level guidance with no unnecessary wording.

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?

There is no output schema, but the description lists the statistics returned and explains the MIP-level tradeoff. The input schema fully documents all parameters. It does not describe the return structure per channel or explicit read-only/error semantics, but it is adequate for a stats tool.

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 four parameters are already documented in the schema. The description adds only a MIP-level approximation example and per-channel scope, which largely restate what the schema already provides. The baseline of 3 is appropriate.

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 states a specific verb and resource: compute pixel statistics per channel at a MIP level. The TX format is clear from the tool name and file_path parameter. It does not explicitly distinguish this from sibling stats tools such as get_exr_pixel_stats or get_dpx_pixel_stats, so it is clear but not fully differentiated.

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?

It gives useful guidance for choosing a higher MIP level when fast approximate statistics are acceptable on large textures. However, it does not explicitly say when to use this tool instead of sibling stats tools or channel/header tools. The usage is implied by the tool name and the stats-focused description.

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