Skip to main content
Glama

map_drum_kit

Identify a drum kit's sounds by playing each key, then save the layout as a drum map so patterns and grooves land on the right notes. Re-map after changing kits.

Instructions

Works out a drum kit by ear: plays every key in the range through the track's instrument (offline, in a temporary item that's removed afterwards), measures each sound and identifies it (kick, snare, clap, rim, closed/open hat, crash, ride, toms, shaker, cowbell, percussion). Saves the layout as a drum map so add_drum_pattern and genre grooves land on the right sounds. Use it whenever a kit's layout is unknown, instead of asking the user. Kits inside one plugin can differ: map again after changing kit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lowNoLowest key to tryC0
highNoHighest key to tryC6
saveNoSave the result as this instrument's drum map
trackYesThe drum track (number or name)
channelNoMIDI channel to play on (most kits listen on all; GM kits use 10)
overwriteNoReplace a drum map you saved for this instrument before
per_channelNoFor kits that put each drum on its own MIDI channel (SILA, drum machines, multitimbral setups): play one note (`low`, default C4) on channels 1-16 instead of a range of keys

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.19.1

TDQS

A4.1/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 well: it discloses that scanning happens offline in a temporary item that is removed afterwards (a non-obvious side effect), and that the layout is persisted as a drum map. It omits any note on cost/duration of scanning an entire key range and doesn't clarify what happens when a sound can't be identified, leaving modest gaps for a mutation-plus-analysis tool.

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 dense sentences with no filler; the core action and its mechanism are front-loaded, and the usage directive follows. Slightly long, but each sentence (mechanism, persistence, when-to-use, re-run trigger) contributes distinct information.

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 complex 7-parameter tool with no annotations and no output schema, the description covers the process, the persistence behavior, and the downstream consumers. It never states what the call reports back (the identified note-to-sound mapping), which would help an agent interpret results, but otherwise it is close to complete.

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 low/high/save/overwrite/per_channel are already documented in the schema. The description adds only marginal meaning ('plays every key in the range' implies the low/high bounds), and does not elaborate on per_channel's channel-sweep semantics beyond what the schema states. Baseline 3 is appropriate.

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 states a precise verb+resource ('Works out a drum kit by ear') and explains the mechanism (plays every key, measures and identifies each sound). It clearly differentiates itself from adjacent siblings like build_drum_kit, save_drum_map, and list_drum_maps by describing an analysis/identification step rather than kit construction or storage.

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 explicit when-to-use guidance ('Use it whenever a kit's layout is unknown, instead of asking the user') and a re-run trigger ('map again after changing kit'), plus the downstream payoff (add_drum_pattern and genre grooves). It stops short of naming when not to use it or contrasting directly with build_drum_kit/save_drum_map, so it is strong context but not a full alternatives map.

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

Deploy Server

Other Tools