Skip to main content
Glama

set_loop

Change the Song Editor loop by setting its start and end positions in beats or toggling looping on and off. Use it to define which section of the song repeats during playback.

Instructions

Change the Song Editor loop. Give at least one argument. This cannot be undone with undo.

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

Input Schema

NameRequiredDescriptionDefault
endNoLoop end in beats, after begin, for example 16.
beginNoLoop start in beats from the song start, for example 0.
enabledNotrue turns the loop on, false turns it off.

Output Schema

NameRequiredDescriptionDefault
endYes
beginYes
enabledYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, while the description adds the important behavioral detail that the change cannot be undone with undo. It does not clarify whether omitted arguments leave values unchanged or reset them.

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?

The description is three short sentences with no wasted wording, and the core purpose is front-loaded. The argument constraint and irreversibility warning each earn their place.

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 simple three-parameter tool with full schema coverage, annotations, and an output schema, the description provides enough context to invoke it safely. The main missing detail is how omitted parameters affect existing loop values.

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 coverage is 100%, so begin, end, and enabled are already well documented in the input schema. The description only adds the at-least-one-argument constraint and no additional semantics beyond the schema.

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?

"Change the Song Editor loop" states a specific verb and resource, making the tool's purpose clear. It does not explicitly differentiate from sibling tools, but no sibling competes directly for loop editing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use when changing the loop and adds a concrete constraint: at least one argument must be supplied. It does not explain when not to use it, prerequisites, or alternatives.

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