Skip to main content
Glama

detect_emotion

Detect emotions in an audio file, returning one overall label plus an emotion label for each time window. Use it to analyze how speech tone shifts across a recording.

Instructions

Detect the emotion in one audio file: one whole-file label plus a label per time window.

The result is a model signal, not proof of how someone felt. 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 'emotion' (Angry, Disgusted, Afraid, Happy, Neutral, Other, Sad, Surprised or Unknown) and 'time_series' (consecutive fixed-length windows with start_ms, duration_ms, emotion). A file shorter than one window has an empty time_series.

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_emotion"
  }
}

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.2/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 does substantial work: it discloses that audio is uploaded to a third-party API (Modulate's Velma), lists accepted formats, caps size at 100 MB, caveats the output as a model signal rather than ground truth, and explains the empty time_series edge case. It stops short of permissions, rate limits, or cost, which keeps it from 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 action and scope, then proceeds through caveat, data-handling, constraints, return shape, edge case, and parameter. Nearly every sentence carries distinct information, though the return-value enumeration is somewhat verbose given an output schema exists.

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 tool with an output schema, this covers everything an agent needs to call it correctly: input path resolution, format and size constraints, what the response contains, and the degenerate short-file case. No material gap remains.

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 description coverage is 0% and the sole parameter is undocumented in the schema, so the description must compensate. It does, explaining that file_path is resolved relative to VELMA_MCP_BASE_PATH or may be absolute but must fall inside it — meaning an agent would not get from the schema alone.

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 the emotion in one audio file') and immediately scopes it to a single file with a whole-file label plus per-window labels. That scope distinguishes it from conversation-level siblings like analyze_conversation and from other single-file detectors such as detect_accent or detect_language.

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?

The 'one audio file' framing implies the right context, and the short-file note implies an expected input shape, but there is no explicit when-to-use or when-not-to-use guidance and no pointer to an alternative tool for multi-file or conversation-level emotion analysis. Usage is inferable rather than stated.

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