Skip to main content
Glama

analyze_audio

Extract musical metadata (BPM, genre, mood, key, instruments) and identify AI-generated audio from any track. Optionally transcribe lyrics. Accepts local files or direct URLs.

Instructions

Analyzes a music track or audio file to extract musical metadata (BPM, genre, mood, key, instruments), AI music detection verdict (HUMAN vs AI_GENERATED Suno/Udio neural vocoder risk with confidence index in 'ai_detection'), and optionally vocal lyrics. Supports local audio files via 'filePath' (read in binary and uploaded) or remote URLs via 'fileUrl'. Note: This tool automatically executes a micro-payment (0.15 USDC for standard analysis, or 0.25 USDC when extractLyrics is enabled) via the x402 protocol on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileUrlNoThe direct publicly accessible URL (HTTP/HTTPS or IPFS) of the audio file to analyze.
filePathNoPath to a local audio file on disk (.mp3, .wav, .ogg, .flac, .m4a, .aac, .aiff). Use this whenever analyzing a local file, recording, or email attachment saved locally.
extractLyricsNoOptional: Set to true to transcribe and extract vocal lyrics in addition to metadata. Costs 0.25 USDC instead of 0.15 USDC.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations present, the description carries the transparency burden and does a solid job: it discloses the x402 micro-payment, the exact costs for both modes, and the binary-read/upload behavior for local files. It does not describe failure modes or response structure, but the most important behavioral surprise, the payment, is clearly flagged.

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 compact and well-structured: it opens with the tool's purpose, then covers input modes, optional lyrics, and the payment note. Every sentence contributes necessary information and there is no redundant filler.

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 a paid audio-analysis tool with no output schema, the description covers the core purpose, output categories, input options, and cost behavior. It is not fully complete because it lacks explicit sibling routing and return-format details, but the essential invocation information is present.

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%, so the baseline is 3. The description adds meaningful value beyond the schema by clarifying that filePath files are read in binary and uploaded, and by specifying the exact cost increase when extractLyrics is enabled.

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 clearly identifies the action ('Analyzes') and resource ('a music track or audio file'), and enumerates the extracted metadata categories. It does not explicitly distinguish itself from the sibling analyze_audio_with_lyrics, though the optional-lyrics mention hints at the relationship.

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?

It provides useful input-selection guidance by explaining when to use filePath versus fileUrl, and when extractLyrics should be enabled. However, it gives no explicit direction about choosing this tool over analyze_audio_with_lyrics or analyze_audio_batch, leaving sibling differentiation to inference.

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