Skip to main content
Glama

Render spectrogram

render.spectrogram
Read-onlyIdempotent

Look at sound: a spectrogram of media or of a score as an image, time left to right, pitch bottom to top on a musical scale with note names up the side, brighter is louder. With a score_id, or a tempo you give, bar and beat lines are drawn. Up to 60 s an image. Low notes sit at the bottom, a voice in the middle, hiss and cymbals at the top; a held note is a level line, a hit is a vertical one. Comes inline and with a signed download url. One row per semitone from C1 (32.7 Hz) to B9 (15.8 kHz), A4 = 440 Hz; brightness is the level in dBFS from -90 dB (black) to 0 (a full-scale sine), the same scale on every picture. Low rows trade time detail for pitch (a window of 0.92 s at C2, 0.23 s at C4, 28.667 ms at C7); the result gives each octave's window, the plot's pixel box, and where each bar line is. Drawn on the same axes as render.notes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "render.spectrogram"
  }
}

Input Schema

NameRequiredDescriptionDefault
tempoNoBeats per minute, to draw bar and beat lines on media
media_idNoMedia to draw. One of media_id or score_id
score_idNoA score to render and draw
long_edgeNoLongest side (the width) in pixels; rows get taller with it
from_secondsNoStart of the range. Default 0
beats_per_barNoBeats in a bar, with tempo: bar lines are drawn and numbered. Without it, beat lines only
until_secondsNoEnd of the range. Up to 60 s after the start. Default the end, or 60 s after the start if that comes first
first_bar_secondsNoWhere bar 1 starts in the media, with tempo. Default 0

Output Schema

NameRequiredDescriptionDefault
barsYes
plotYesThe plot in image pixels: a time t is at x = left + (t - from_seconds) / seconds_per_pixel; a row is row_pixels high, the highest at top
imageYes
levelYes
pitchYes
analysisYesHow levels were measured
media_idNo
score_idNo
beat_linesYesBeat lines drawn (none when closer than 4 pixels)
from_secondsYes
until_secondsYes
window_secondsYesWindow length at each C: the time detail of that octave
seconds_per_pixelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds substantial behavior beyond that: a hard 60 s range limit, image output plus a signed download url, a fixed dBFS rendering scale identical across pictures, and per-octave time-resolution tradeoffs (0.92 s at C2 down to 28.667 ms at C7). It could still note error behavior or the cost/size implications of long_edge, so not a 5.

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?

Front-loaded with the core 'what you are looking at' framing, then specifications, then output form. Most sentences carry information, but the interpretive asides ('a voice in the middle, hiss and cymbals at the top; a held note is a level line, a hit is a vertical one') restate what the preceding axis sentence already implies and could be trimmed.

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 an 8-parameter, all-optional render tool with an output schema, the description covers axes, units, limits, resolution behavior and return channel adequately; return-structure detail is rightly left to the output schema. The remaining gap is the absence of guidance on the media_id-vs-score_id choice and on omission of both.

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 description coverage is 100%, so the baseline is 3, but the prose adds real meaning on top: it explains that bar and beat lines require tempo (or a score), what beats_per_bar does in combination, and that long_edge taller rows follow from the chosen width. It does not clarify first_bar_seconds' interaction with from_seconds beyond the schema's own wording, keeping it from a 5.

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 concrete verb and resource ('a spectrogram of media or of a score as an image') and immediately defines what the output encodes: time left-to-right, pitch bottom-to-top on a note-named scale, brightness as level. A final clause ties it to the sibling render.notes ('Drawn on the same axes'), so an agent can distinguish the two without opening either schema.

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 implied rather than stated: the description makes clear you supply either media_id or score_id, mentions the 60 s ceiling, and notes bar/beat lines appear 'With a score_id, or a tempo you give'. However it never says explicitly when to choose this over render.notes or render.frames, nor what happens when neither id is supplied (both params are optional).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.