Skip to main content
Glama

detect_audio_events

Detect sound events such as crying, laughter, applause, barking, gunshots, and instruments in one audio file. Returns probability scores for each detected event.

Instructions

Detect sound events (crying, laughter, applause, bark, gunshot, instruments and more) in one audio file.

The result is a probability signal, not proof. The audio is uploaded to Modulate's Velma API. Allowed formats: aac, aiff, flac, mp3, mp4, mov, ogg, opus, wav, webm. Max 100 MB. Returns 'probs', a map from event name to probability (0 to 1) containing only events detected with enough confidence; an event missing from the map is not necessarily absent. Events are not mutually exclusive. 'probs' is empty when nothing was detected. Also returns duration_ms and 'top_event' (the highest-probability event, or null).

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

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.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that audio is uploaded to a third-party API (Modulate Velma), lists accepted formats and the 100 MB cap, and warns that results are a probability signal rather than proof, that absent events may still be present, that events are not mutually exclusive, and that an empty map means nothing was detected.

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 purpose, then constraints, then return semantics — a sensible order with no filler sentences. The slight cost is that 'probs', 'duration_ms' and 'top_event' are re-explained in prose even though an output schema exists, and the format list is dense inline text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter detection tool, the description covers the external-service dependency, input constraints, output shape and interpretation caveats. An output schema exists, so the return-value explanation is arguably redundant but it removes any ambiguity about how to read missing entries.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the schema gives only a bare string for file_path, but the description supplies the missing semantics: the path is relative to VELMA_MCP_BASE_PATH or absolute but contained within it. That resolution rule is essential and appears nowhere in the structured schema.

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 ('Detect sound events ... in one audio file') and enumerates concrete event classes (crying, laughter, applause, gunshot, instruments), which cleanly separates it from siblings like detect_emotion, detect_accent, detect_language and detect_synthetic_voice.

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: an agent can infer this is the tool for non-speech acoustic events, but there is no explicit when-to-use/when-not or named alternative (e.g., 'use transcribe_audio for speech content'). The file-format and 100 MB constraints act as practical eligibility rules, which partially compensates.

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