Skip to main content
Glama

set_loop

Idempotent

Define the Arrangement loop region by setting start position and length in beats, and control whether looping is enabled.

Instructions

Set the global Arrangement loop region and its enabled state.

start is an absolute beat and length is a positive beat duration. The region is updated even when enabled=false; playback simply will not repeat it. Use set_clip_loop for a Session clip's loop braces, not the Arrangement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startYesPosition in beats from the start of the Arrangement.
lengthYesPositive duration or region length in beats.
enabledNoTrue turns the requested state on; false turns it off.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.7.3
    • addedInput schema / properties / enabled / description
      Added value: +"True turns the requested state on; false turns it off."
    • addedInput schema / properties / length / description
      Added value: +"Positive duration or region length in beats."
    • addedInput schema / properties / length / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / start / description
      Added value: +"Position in beats from the start of the Arrangement."
    • addedInput schema / properties / start / minimum
      Added value: +0
  2. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond annotations (idempotent, non-destructive), description adds that the region is updated even when enabled=false and playback will not repeat. This gives agents full understanding of side effects without contradicting annotations.

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?

Two short paragraphs, each sentence earns its place. Front-loaded with purpose, then clarifies parameters and alternative tool. No fluff.

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?

Given output schema exists and annotations, description fully covers what agents need: what it does, parameter semantics, behavioral nuance, and when to use alternative. Complete for effective tool selection.

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?

Schema has 100% coverage, so baseline is 3. Description adds meaning beyond schema: 'start is an absolute beat', 'length is a positive beat duration', and clarifies enabled's effect (region updates but no repetition). This adds significant value.

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?

Description clearly states it sets the global Arrangement loop region and its enabled state, with specific verb 'Set' and resource 'global Arrangement loop region'. It distinguishes itself from the sibling tool 'set_clip_loop' by explicitly naming the alternative for Session clip loops.

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?

Explicitly tells when to use this tool (for Arrangement loop) and when not to (use set_clip_loop for Session clips). Also explains behavior when enabled=false, providing clear context for decision-making.

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