Skip to main content
Glama

Analyze an alpha channel

analyze_alpha_plane
Read-onlyIdempotent

Analyzes a Base64 8-bit alpha plane with width and height to return pixel transparency and visibility statistics plus adjustable significance flags for alpha-channel inspection.

Instructions

Analyze a supplied 8-bit alpha plane (one byte per pixel) as canonical Base64, with explicit width/height. Returns pixel statistics and adjustable significance flags. This does not decode video or infer image subjects. Maximum 65,536 pixels. Alpha 0=transparent, 255=opaque.

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": {
      "alphaBase64": "<alphaBase64>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "analyze_alpha_plane"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthYes
heightYes
alphaBase64Yes
visibleAboveNo
minPixelFractionNo
transparentBelowNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (read-only, idempotent, non-destructive, closed-world), and the description adds genuinely new constraints: an input size cap, a strict encoding contract, and the alpha value convention (0=transparent, 255=opaque). It does not mention latency, cost, or error behavior for malformed planes, but it exceeds the annotation baseline meaningfully.

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?

Four tight sentences with no filler: format contract first, output second, exclusions third, value semantics last. Every sentence carries distinct information and the most decision-relevant constraints are front-loaded.

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?

The description adequately compensates for the absent output schema by naming the returned statistics and flags in prose. However, with six parameters, no schema descriptions and ambiguous threshold names, an agent cannot determine how to set visibleAbove, transparentBelow or minPixelFraction from this definition alone.

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 0%, so the description must carry the load. It well explains alphaBase64, width and height (byte-per-pixel, canonical Base64, explicit dimensions, 65,536-pixel cap), but the three threshold parameters (visibleAbove, transparentBelow, minPixelFraction) are only alluded to as 'adjustable significance flags' with no explanation of their interaction, despite non-obvious names and non-overlapping ranges.

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 ('Analyze a supplied 8-bit alpha plane') plus the exact input format (one byte per pixel, Base64, explicit width/height) and the result (pixel statistics and significance flags). The negative scoping sentence rejects video decoding and subject inference, which cleanly separates it from the sibling inspect_video_alpha.

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?

Gives clear context for when this applies (you already hold raw alpha data at a known size) and explicit exclusions ('does not decode video or infer image subjects') along with a 65,536-pixel ceiling. It stops short of naming inspect_video_alpha as the alternative for video sources, so the routing is implied rather than stated.

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

Deploy Server

Other Tools