Skip to main content
Glama

Add device

score.add_device
Idempotent

Put an instrument or an effect on a part of a score, or an effect on the whole score (master). A part sounds through its devices in order: its instruments first, every one of them playing every note of the part (two or more sound together as one layered sound), then its effects in the order added. Instruments, by name: sampler, synth, grand_piano, electric_piano, organ, acoustic_bass, electric_bass, synth_bass, sub_bass, strings, pad_warm, brass, flute, bells, music_box, marimba, acoustic_guitar, electric_guitar, pluck, choir; drum kits, where a pitch selects a drum: kit_acoustic, kit_808, kit_909, kit_lofi. Each named instrument and kit is recorded so its loudest note peaks at -12 dBFS at gain_db 0, which leaves room for chords and several parts. Effects, each with the params it has to be given (no value is assumed for them; the rest have defaults): eq {bands}, filter {type, cutoff_hz}, compressor {threshold_db, ratio, attack_ms, release_ms}, limiter {ceiling_dbtp}, reverb {decay_seconds, wet}, delay {wet, time_beats or time_ms}, chorus {rate_hz, depth, wet}, saturation {drive_db}, gain {gain_db}. sampler plays any media (media_id), or a time range of it, at each note's pitch, from its start for the note's length, then release_ms; one_shot plays it to its end whatever the length; root_note is the pitch that plays it unchanged; with slices, each pitch plays its own range of the media, as a drum kit does, and a pitch with no slice is silent. synth is oscillators, a filter and envelopes. A wrong name or param is refused with the full list, ranges, units and defaults (also at video://catalog/devices); score.get shows every param applied. Returns the new score_id (edit that one next) and the device_id.

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": {
      "name": "<name>",
      "score_id": "<score_id>"
    },
    "name": "score.add_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA device name from video://catalog/devices
masterNotrue puts an effect on the whole score
paramsNoThe device's params. For sampler: media_id, from_seconds, until_seconds, root_note (a pitch, as in notes), one_shot, or slices [{note, from_seconds, until_seconds}]
part_idNoThe part. One of part_id or master
at_indexNoPosition in the part's order. Default last (an instrument: after the part's other instruments)
score_idYesThe score to edit

Output Schema

NameRequiredDescriptionDefault
parentYesThe version this edit started from
changedYesWhat the edit added, removed or modified
score_idYesThe new version: edit this one next (older ids stay valid)
warningsYes
device_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare that this is a non-read-only, non-destructive, openWorld=false operation; the description carries far more: layered playback order (instruments first, all playing every note, then effects by insertion order), gain staging to -12 dBFS peak, which params are mandatory per effect with no assumed values, sampler semantics, and that invalid names/params are refused with the full list, ranges and units. It also states the return values (score_id, device_id). Minor tension: returning a new device_id suggests repeated calls append devices, which sits awkwardly with idempotentHint=true, but the description never states duplicate-creation behavior explicitly.

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 and scope, then progressively deeper detail, with zero filler sentences. It is dense and long (the instrument list and per-effect param listings are bulky), but every clause carries usable information; only the sampler/synth prose could be tightened.

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 6-parameter nested-schema mutation tool with an output schema present, the description covers the parts an agent most needs: valid names, ordering effects, required effect params, failure behavior, and what is returned. Since an output schema exists, it correctly does not spend words explaining the return shape beyond naming the identifiers.

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 100%, so the baseline is 3, but the description adds meaning the schema cannot express: since 'name' has no enum, it enumerates the full closed set of instrument and kit names, and it lists the required params for each effect inside a free-form params object where additionalProperties is unrestricted. That is directly actionable input knowledge rather than restatement.

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?

Opens with a specific verb+resource+scope: 'Put an instrument or an effect on a part of a score, or an effect on the whole score (master).' An agent can distinguish this from score.set_device, score.remove_device and score.add_part purely from that first clause, and the master-vs-part branching is stated up front.

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?

Gives clear context for use: instruments go on a part, effects go on a part or on master in the order added, and 'edit that one next' tells the agent to reuse the returned score_id. The device-style guide at video://catalog/devices is offered as the fallback for invalid names. It stops short of naming alternatives (e.g. score.set_device for editing an existing device, score.remove_device), so the agent must infer when not to use this tool.

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.