Skip to main content
Glama

Find recordings by sound

directory_search_recordings
Read-onlyIdempotent

Use when the user asks: 'find upbeat tracks around 120 BPM', 'find instrumental tracks in C minor', 'find energetic music for sync', 'tracks at X BPM in [key]'. AUDIO-FEATURE search only — for name- or title-shaped queries use directory_lookup_work, directory_lookup_isrc, or directory_list_people, NOT this tool. Not for a theme or subject ('a song about love'): search that in directory_list_works q first, then narrow here. Few recordings carry a mood yet, so an empty mood search does not mean the directory has no such song. Find tracks by BPM, key, energy, brightness, duration, mood, and more. The measured filters (BPM, key, energy, …) match analysed audio only. PICA does not detect mood: a mood search returns only works whose owner set it, marked mood_note "mood set by the owner, not analysed" — say so when you present them. Only returns recordings of works listed on the directory by their owner or a confirmed writer. → then: directory_lookup_work (credits and licensing details for a matched track)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "directory_search_recordings"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoMusical key (e.g. 'C', 'F#', 'Bb'). Matches the detected key.
moodNoMood — one of: aggressive, ambient, calm, contemplative, dark, dramatic, dreamy, energetic, epic, ethereal, hopeful, intense, melancholic, nostalgic, passionate, playful, romantic, sad, tender, tense, triumphant, uplifting, warm. "happy" is read as "uplifting". Any other word is refused. A mood matches analysed recordings, and also listed songs whose owner set that mood on audio that is not analysed: those carry mood_note "mood set by the owner, not analysed" and no measured values. With a BPM, key, energy or other measured filter, only analysed recordings match.
limitNoMax results to return (default: 20, max: 100).
max_bpmNoMaximum BPM (e.g. 140)
min_bpmNoMinimum BPM (e.g. 100)
key_modeNoKey mode — major or minor
max_energyNoMaximum energy, 0 to 1 (measured loudness).
min_energyNoMinimum energy, 0 to 1 — measured loudness (ITU-R BS.1770 integrated loudness on a quiet-to-loud scale), not a mood. Higher = louder.
vocals_onlyNoIgnored: vocals are not measured and owners do not mark them.
max_durationNoMaximum duration in seconds.
max_dynamicsNoMaximum dynamics, 0 to 1 (see min_dynamics).
min_durationNoMinimum duration in seconds.
min_dynamicsNoMinimum dynamics, 0 to 1 — measured loudness range (EBU R128). Not yet calibrated: accepted and ignored until it is (the result's ignored_filters says so).
max_brightnessNoMaximum brightness, 0 to 1 (measured).
min_brightnessNoMinimum brightness, 0 to 1 — measured high-frequency content (spectral rolloff), not a mood. 0 = the darkest 5% of the directory, 1 = the brightest 5%.
max_danceabilityNoIgnored: danceability is not measured.
min_danceabilityNoIgnored: danceability is not measured. Use min_rhythmic_density or min_energy.
instrumental_onlyNoOnly songs or recordings the OWNER marked instrumental (not a measurement).
max_rhythmic_densityNoMaximum rhythmic density, 0 to 1 (see min_rhythmic_density).
min_rhythmic_densityNoMinimum rhythmic density, 0 to 1 — measured onsets per second. Not yet calibrated: accepted and ignored until it is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description layers on non-obvious behavior: measured filters match analysed audio only, PICA does not detect mood, owner-set moods return with mood_note 'mood set by the owner, not analysed' and no measured values, and results are limited to works listed by an owner or confirmed writer. It further warns that an empty mood search is not evidence of absence, which prevents a common false negative.

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?

Structure is front-loaded and purposeful: triggers first, exclusions second, semantics third, next-step routing last. It is long and repeats the measured-vs-owner-set point twice, but nearly every sentence carries operational information for a 20-parameter tool.

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 20-parameter tool with no output schema, the description covers the important non-obvious behaviors: filter reliability, mood provenance and the mood_note field, directory coverage limits, and the follow-up call. It does not sketch the result shape beyond mood_note/ignored_filters, but the schema's ignored-filter notes fill much of that gap.

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 description coverage is 100%, so the schema already documents semantics for key, mood, energy, brightness, dynamics, rhythmic density, and the ignored parameters. The description reinforces the measured-vs-owner-set distinction and the cross-filter rule ('with a BPM, key, energy or other measured filter, only analysed recordings match'), but that rule is also stated in the mood parameter schema, so it adds little beyond the structured data.

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?

The description names a specific verb+resource ('AUDIO-FEATURE search' over recordings) and immediately constrains it against three named siblings (directory_lookup_work, directory_lookup_isrc, directory_list_people). An agent can tell from the first two sentences that this is a sound-attribute search, not a name/title lookup.

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

Usage Guidelines5/5

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

It states explicit when-to-use triggers via quoted user phrasings, explicit when-not ('Not for a theme or subject... search that in directory_list_works q first'), and names the correct alternative for each excluded case. It also routes forward to directory_lookup_work for credits/licensing, leaving nothing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources