Skip to main content
Glama
live-agent-bridge

live-agent-bridge

by huaidj

sample_search

Read-onlyIdempotent

Find samples across Live folders, installed packs, and libraries by filename, tags, tempo, key, loop type, or folder, then return file paths for load_sample or load_drum_kit.

Instructions

Millisecond search over every sample on disk that Live knows about: Places / user folders, installed packs, User Library and Core Library (from Live's Library.cfg). Results distinguish decoded-audio measurements from low-confidence filename hints. Semantic description/similar_to search needs an existing local CLAP model and analyzed embeddings. Use the returned path with load_sample or load_drum_kit.

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

Input Schema

NameRequiredDescriptionDefault
bpmNoTarget tempo; half/double time also match
keyNoe.g. 'Am', 'F#', 'C minor' (relative key also matches)
loopNotrue = loops only, false = one-shots only
tagsNoRequired tags: kick snare clap rim hihat open_hat cymbal tom perc 808 bass lead pad chord keys guitar strings brass vocal fx riser impact texture fill break top loop one_shot splice
limitNo
queryNoWords matched against file name, folder and tags, e.g. 'punchy kick', '808', 'vocal chop', 'amen break'
detailNoFull per-file analysis (default: compact summary)
folderNoSubstring of the folder/pack path
offsetNo
similar_toNoReference audio path; needs local CLAP
descriptionNoSemantic sound description; needs local CLAP
max_durationNoSeconds (WAV only)
bpm_toleranceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. Beyond that, the description adds real behavioral context: which on-disk locations are indexed (from Live's Library.cfg) and that results distinguish decoded-audio measurements from low-confidence filename hints — a meaningful reliability signal for judging matches.

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?

Four sentences, front-loaded with the scope statement, then the result-quality caveat, then the prerequisite, then the natural next step. Dense but each sentence carries information; only the semantic-search prerequisite is effectively repeated from the schema.

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 13-parameter read-only search with no output schema, the description covers corpus, result trustworthiness, a capability prerequisite, and follow-up tools. It leaves the compact-vs-detail response shape and pagination behavior to the schema, which is acceptable given the strong annotation coverage.

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 77%, so most parameters (bpm, key, loop, tags, query, folder, max_duration, similar_to, description) are already documented in the schema, including the CLAP prerequisite for the semantic fields. The description largely restates those semantic-search prerequisites rather than adding new per-parameter meaning, and it says nothing about limit, offset, detail or bpm_tolerance.

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 opens with a specific verb and resource ('Millisecond search over every sample on disk') and enumerates the scanned locations (Places, user folders, installed packs, User Library, Core Library), which tells an agent exactly what corpus this covers. It does not explicitly distinguish itself from the sibling 'browser_search' or 'sample_library', so it falls short of full sibling differentiation.

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?

It gives clear usage conditions: semantic description/similar_to search requires an existing local CLAP model and analyzed embeddings, and results should be followed with load_sample or load_drum_kit via the returned path. It never states when to prefer browser_search or sample_library instead, so there are no exclusions.

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