Skip to main content
Glama

classify_music_speech

Classify an audio file as music, speech, neither, or unknown and return frame-level probabilities to help identify content type and mixed segments.

Instructions

Classify one audio file as music, speech, neither or unknown, with frame-level probabilities.

This detects the presence of music and speech; it does not detect AI-generated music (use detect_ai_music for that). The result is a model signal. The audio is uploaded to Modulate's Velma API. Allowed formats: the wide audio/video list (for example wav, mp3, m4a, flac, ogg, opus, mp4, webm, mov). Max 100 MB. Returns filename, duration_s, primary_label, music_pct, speech_pct (percent of the clip), latency_ms and 'frames' (about 192 ms each: start_time_ms, end_time_ms, music_prob, speech_prob). Music and speech are not mutually exclusive in a frame. 'frames' can be long for long audio.

file_path: path to the audio file, relative to VELMA_MCP_BASE_PATH or absolute inside it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file_path": "<file_path>"
    },
    "name": "classify_music_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly succeeds: it discloses that audio is uploaded to the third-party Modulate Velma API, lists accepted formats, and caps input at 100 MB. It also warns that 'frames' can be long for long audio and that music/speech are not mutually exclusive per frame. It does not cover failure behavior for unsupported or oversized files, latency expectations, or cost/quota, which keeps it short of 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 purpose and the sibling disambiguation, then constraints and return fields in a logical order. The format list is slightly verbose ('the wide audio/video list (for example ...)') but every sentence carries operational information; nothing is 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?

An output schema exists, yet the description still adds needed semantics about the frames array (about 192 ms per frame, non-exclusive probabilities), which the schema alone wouldn't make obvious. Combined with format, size, and third-party egress disclosure, it is nearly complete for a one-parameter tool; only error/rate-limit behavior is absent.

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?

The single parameter has 0% schema description coverage (only a 'File Path' title), but the description compensates by defining the resolution rule: relative to VELMA_MCP_BASE_PATH or absolute inside it. That is exactly the information needed to pass a valid path that the schema does not supply.

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 specific verb and resource ('Classify one audio file as music, speech, neither or unknown') along with the output granularity ('frame-level probabilities'). It also explicitly separates itself from the sibling detect_ai_music, which handles AI-generated music, 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 Guidelines4/5

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

Gives a clear scope statement plus an explicit exclusion and the correct alternative ('use detect_ai_music for that'). It does not describe scenario-level when-to-use guidance or note what to do with the labels afterwards, but the routing guidance is unambiguous for the main ambiguity an agent would face.

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