Skip to main content
Glama

get_energy_profile

Analyzes an MP3 to return loudness and bass, mid, and high energy over time, helping align xLights effects with the music.

Instructions

Get energy and frequency band analysis for a song.

Returns loudness curve and bass/mid/high energy over time.

Args: mp3_path: Path to the .mp3 file

Input Schema

NameRequiredDescriptionDefault
mp3_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the shape of the output (loudness curve plus bass/mid/high energy over time), implying a read-only analysis. It says nothing about runtime cost (audio analysis is typically slow), file-read requirements, or failure modes for invalid paths, which are the meaningful behavioral gaps here.

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?

Two sentences of substance, front-loaded with the purpose, followed by the return summary. The trailing Args block is mild boilerplate that restates the single parameter, but the whole definition is short enough that nothing is costly.

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?

There is no output schema, so the description must convey return values, and it does so only at a high level — no units, no data structure, no indication of time resolution or sampling. For a one-parameter analysis tool this is workable but leaves the agent guessing what it will actually receive back.

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 0% — the property carries only a title, no description — so the docstring's 'mp3_path: Path to the .mp3 file' is the sole documentation, adding the file-type constraint. It does not clarify whether the path is absolute or relative, or whether the file must already be uploaded/registered with the host application.

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?

States a specific verb and resource ('Get energy and frequency band analysis for a song') and adds what the output covers (loudness curve, bass/mid/high energy over time), which separates it from siblings like get_beat_map or get_song_structure. It never explicitly contrasts itself with analyze_song, which is the closest neighbor, so it stops short of a 5.

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

Usage Guidelines2/5

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

No guidance on when to choose this over analyze_song, get_beat_map, or get_song_structure, all of which plausibly operate on the same mp3_path input. The reader must infer the distinction from the noun 'energy' alone.

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