Skip to main content
Glama

Create histogram scope

create_histogram_scope

Build a luminance or RGB histogram video scope for any TOP. Computes histograms on the GPU and outputs a Null TOP ready for previews.

Instructions

Build a luminance (and optional per-channel RGB) histogram video scope for any TOP. Computes the histogram on the GPU using a GLSL TOP (bins×1 output), samples into a CHOP, normalises, and renders through choptoSOP → renderTOP. Output is a single Null TOP ready for previews or bind_to_channel. Implements the roadmap Milestone 2 histogram scope panel as a standalone focused tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoVideo source. 'test_pattern' = synthetic Banana.tif (no permission needed). 'existing_top' = reuse a TOP you already have (provide existing_top_path). 'file' = a video/image file. 'device' = live camera — may hang TD on a macOS permission modal.test_pattern
existing_top_pathNoPath of an existing TOP to scope (source='existing_top').
video_file_pathNoVideo/image file path (source='file').
modeNoHistogram mode. 'luma' = single luminance trace. 'rgb' = three overlaid per-channel traces. Note: rgb mode is informational only in v1 — ships as luma with rgb flag in extra.luma
binsNoNumber of histogram bins (16..512). Drives the GLSL TOP output width. Changing after build requires a rebuild.
gainNoPre-scope brightness (Level TOP brightness1 parameter).
log_scaleNoCompress tall peaks with log(1+x) in the normalisation Math CHOP. Changing after build requires a rebuild.
trace_colorNoPhosphor tint colour for luma mode as a hex string. Ignored when mode='rgb'.#00ff88
bar_styleNoReserved — informational only in v1. Both values currently emit the same `choptoSOP`-fed render (a thin vertical strip per bin); a true polyline 'line' mode is planned. Setting this changes the value recorded in `extra` but does not yet change the SOP topology.bars
resolutionNoOutput Null TOP size [width, height].
expose_controlsNoBind live controls: Gain, TraceColor (luma mode), LogScale (informational).
parent_pathNoParent COMP path; the histogram scope container is created as 'histogram_scope' inside it./project1
Behavior5/5

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

The description discloses significant behavioral details beyond annotations: GPU computation, the full pipeline (GLSL TOP → CHOP → choptoSOP → renderTOP → Null TOP), v1 limitations (rgb mode informational, bar_style reserved), and that changing bins/log_scale requires a rebuild. It also warns that device source may hang on macOS due to permission modal. No contradiction with annotations.

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?

The description is two sentences, efficiently stating the core purpose and technical details. While it is dense with jargon (GLSL, CHOP, choptoSOP), each phrase adds value. Slightly long for a description but still concise for the complexity.

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?

Given the complexity (12 parameters, no output schema), the description provides a good overview of the pipeline and v1 limitations. The schema covers individual parameters well. Missing some guidance on parameter interactions (e.g., trace_color ignored in rgb mode) but overall complete enough for an agent to understand usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (all 12 parameters have descriptions in the schema). The description adds meaning beyond the schema by noting that bar_style is reserved and doesn't change behavior, rgb mode is informational in v1, and that changing bins/log_scale requires rebuild. It also contextualizes the overall purpose of parameters like expose_controls.

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?

The description clearly states the tool builds a luminance (and optional RGB) histogram video scope for any TOP. It specifies the technical pipeline (GPU GLSL, CHOP, choptoSOP, renderTOP) and distinguishes itself with details like 'roadmap Milestone 2' and 'standalone focused tool', making it distinct from siblings like create_video_scopes.

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?

The description provides some context (e.g., for any TOP, output is a Null TOP for previews or bind_to_channel) but does not explicitly state when to use this tool versus alternatives like create_waveform or create_video_scopes. There is no direct when-not-to-use or comparison with siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pantani/tdmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server