Skip to main content
Glama

media_tools_waveform

Waveform of an audio file as PNG and SVG in your colours, bar or line style, plus the peak values to draw it yourself, the silence at both ends and whether the audio clips. Price: $0.01 USDC via x402, charged only on success. Part of Media tools: Video and audio chores for sites, apps and docs: turn a clip into a small GIF or animated WebP, compress video to web-ready MP4/WebM with a poster, pull thumbnails and a contact sheet, extract or convert audio with loudness normalization, draw waveforms, and probe a file for what will not play in browsers..

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": "media_tools_waveform"
  }
}

Input Schema

NameRequiredDescriptionDefault
gapNo
audioNoAudio file as base64 (MP3, WAV, OGG, FLAC, M4A, AAC), or a video to take the sound from.
colorNo#d9480f
styleNobars: rounded bars like a voice message; line: a dense filled waveform.bars
widthNo
heightNo
pointsNoHow many peak values to return for drawing the waveform yourself.
audioUrlNoLink to the audio.
barWidthNo
backgroundNoTransparent when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose genuinely useful behaviour: pricing of $0.01 USDC via x402 charged only on success, plus exactly what is returned (images, peaks, silence, clipping). However, it omits material behaviour such as the mutual exclusivity of the audio and audioUrl inputs, file size limits, and other failure conditions an agent would need before spending money on a call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence front-loads the useful content efficiently, and the pricing sentence earns its place. But the trailing family-level blurb ('Part of Media tools: Video and audio chores...') is boilerplate that does not help select or invoke this tool and dilutes an otherwise tight definition.

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?

For a tool with 10 optional parameters, zero annotations, and no output schema, the description does well on return values and cost but leaves a critical gap: since no parameter is required, an agent is not told that one of audio or audioUrl must be supplied, nor which formats or size limits apply. Completeness is adequate but not sufficient for confident 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?

At 50% schema description coverage, the description partially compensates by mapping natural-language concepts (colours, bar or line style, peak values) onto color, background, style and points. It says nothing about audio versus audioUrl as alternative sources, nor about width, height, gap or barWidth, which are undocumented in both the schema and the description.

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 names the resource (an audio file's waveform) and enumerates the concrete outputs: PNG and SVG in custom colours, bars or line style, peak values, trailing silence, and clipping detection. That is far more specific than the name alone. It never explicitly contrasts itself with siblings such as media_tools_extract_audio or media_tools_audio_convert, so the agent must infer the boundary from the output list rather than being told it.

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 only implied: you would call this when you need a rendered waveform image or peak data. There is no statement of when to prefer it over extracting or converting audio, no prerequisites, and no exclusions. The closing sentence is a catalogue blurb for the whole Media tools family and offers no selection guidance for this specific tool.

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.

Resources