Skip to main content
Glama

copy_bars

Copies a range of bars to a target bar across all or selected tracks, optionally including section markers, to repeat verses or choruses.

Instructions

Copy everything in bars [from_bar, from_bar+bars) to to_bar (all tracks, or only tracks): to repeat a whole verse or chorus. Section markers are copied too unless sections=false.

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": {
      "from_bar": "<from_bar>",
      "bars": "<bars>",
      "to_bar": "<to_bar>"
    },
    "name": "copy_bars"
  }
}

Input Schema

NameRequiredDescriptionDefault
barsYes
to_barYes
tracksNo
projectNo
from_barYes
sectionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations the description carries the full burden. It usefully discloses a non-obvious side effect (section markers are copied unless sections=false) and the track-scoping behavior, but says nothing about what happens to existing content at to_bar (overwrite vs. shift), whether the length of the destination region changes, or whether the operation is reversible.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence plus one qualifier; the range semantics come first, then scope, then the sections exception. No filler, and the closing clause preempts the most likely surprise (unwanted section markers).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter mutation tool with zero annotation and zero schema description coverage, the description covers the core mechanics but leaves the project parameter undefined and the destination-overwrite behavior unspecified. An agent could invoke it but might not predict the resulting state of the timeline.

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?

At 0% schema description coverage the description must compensate, and it does for most parameters: from_bar, bars, and to_bar are defined through the interval expression, tracks is described as an optional narrowing filter, and sections is explained with its default behavior. The sixth parameter, project, is never mentioned, leaving one gap.

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 (copy) and resource (bars), and pins down the exact source range using interval notation [from_bar, from_bar+bars), which removes ambiguity about whether 'bars' is a count or an endpoint. The scope clause 'all tracks, or only tracks' and the secondary section-marker behavior make the operation fully distinguishable from insert_bars/delete_bars.

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 a concrete use case ('to repeat a whole verse or chorus') that tells the agent the intended scenario, which is enough context to choose this over insert_bars. It stops short of explicit when-not guidance or naming an alternative for partial-bar/append-style edits.

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