Skip to main content
Glama

Create audio spectrum

create_spectrum

Build an FFT audio-spectrum analyzer that exposes N bindable frequency-bin channels on a Null CHOP, enabling bar visualizations or specific-band monitoring from live, file, oscillator, or existing CHOP sources.

Instructions

Build an FFT audio-spectrum analyzer that exposes N separate, ready-to-bind frequency-bin channels (band0..band{N-1}) on a Null CHOP. This is the per-band complement to extract_audio_features (which only gives overall level + bass/mid/treble): bind a row of parameters to op('…/spectrum/spectrum')['band0'], ['band1'], … to drive a bank of bars, or pick one frequency. A Sensitivity knob scales every band. Source can be the live device (mic/line — may prompt for macOS permission), an audio file, a synthetic oscillator (for testing), or an existing CHOP. Use extract_audio_features when you want coarse level/bass/mid/treble bands instead of N fine bins, create_audio_reactive for a ready-made spectrum visual, and feed this Null into bind_audio_reactive to drive a COMP.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bandsNoNumber of frequency bins to expose as separate, bindable channels (band0..band{N-1}). 16 or 32 is typical; higher = finer frequency resolution.
sourceNoAudio source. 'device' = live microphone/line in (the real-world default; creating it may pop a one-time macOS microphone-permission dialog — click Allow). 'file' = an audio file. 'oscillator' = a synthetic tone (white noise → energy in every band, handy for testing without any device permission). 'existing_chop' = reuse a CHOP you already have.device
parent_pathNoParent COMP path the self-contained 'spectrum' container is created inside./project1
audio_file_pathNoAudio file path (source='file').
expose_controlsNoExpose a live 'Sensitivity' knob (a gain over every band channel).
existing_chop_pathNoPath of an existing audio CHOP to analyze (source='existing_chop').
Behavior4/5

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

Annotations already state readOnlyHint=false and openWorldHint=true, so creation is expected. The description adds valuable context: it may trigger a macOS microphone-permission dialog, exposes channels in a specific naming pattern, includes a Sensitivity knob (if expose_controls is true), and supports multiple audio source types. This goes beyond the annotation-derived baseline and surfaces non-obvious side effects.

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 dense but not verbose. It packs a clear definition, a usage example, a sensitivity knob note, source options, a security caution, and sibling tool guidance into one compact paragraph. Every sentence contributes a distinct piece of information, and the opening sentence immediately answers 'what does it do?'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Because there is no output schema, the description fully covers what the agent will get: a Null CHOP with band0..band{N-1} channels, how to bind them (via op('…/spectrum/spectrum')['band0']), what the Sensitivity knob does, the four source modes, and a macOS permission caveat. It also positions the tool relative to its siblings, making the context complete for selection and invocation.

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 each parameter already has a descriptive comment (e.g., bands, source, parent_path). The description reinforces the bands/channel naming and shows a binding example, but it doesn't add meaning beyond the schema's existing parameter descriptions. Baseline 3 is appropriate.

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 opens with a specific verb ('Build an FFT audio-spectrum analyzer') and includes the concrete deliverable: N bindable frequency-bin channels (band0..band{N-1}) on a Null CHOP. It also names sibling tools and explicitly frames itself as the per-band complement, making differentiation clear from the outset.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit when-to-use vs alternatives: 'Use extract_audio_features when you want coarse level/bass/mid/treble bands instead of N fine bins, create_audio_reactive for a ready-made spectrum visual, and feed this Null into bind_audio_reactive to drive a COMP.' This is textbook usage guidance—it tells the agent when to choose this tool versus its 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/lucasmaher-hash/touch-designer-mcp'

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