Skip to main content
Glama

Play

play

Start playback from a chosen bar or Lathe's insert marker, with optional stopping at a target bar or after specified loop repeats.

Instructions

Starts playback, from the given bar or from Lathe's insert marker. With to_bar, Lathe stops by itself exactly when the playhead gets there. With loop_times, it plays the loop that many times and stops at the loop end (the loop must be on: see set_loop). When it stops, the playhead goes back to the insert marker, as with Stop. Without from_bar or to_bar it does nothing if Lathe is already playing; from_bar jumps there, to_bar alone sets where the current playback stops.

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

Input Schema

NameRequiredDescriptionDefault
to_barNoStop when the playhead reaches this bar (1-based; 5 = the start of bar 5)
from_barNoBar to start from (1-based)
loop_timesNoPlay the loop this many times, then stop at its end. Starts at the loop start unless from_bar is inside the loop

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare it is a non-readonly, non-idempotent, non-destructive action; the description goes well beyond that by disclosing the playhead reset to the insert marker on stop, automatic stop at to_bar, loop-end stopping, and the silent no-op when already playing. These are the side effects and edge cases an agent cannot infer from annotations.

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, front-loaded with the core action, and every clause carries behavioral information rather than filler. The final sentence is long and runs three conditions together, which slightly slows parsing but adds no waste.

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 zero-required-parameter playback tool with no output schema, the description covers modes, prerequisites, and stop behavior thoroughly. Gaps are minor: no statement about precedence when both playground bounds conflict or what a call returns on immediate no-op.

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 coverage is 100%, so the baseline is 3, but the description adds combinatorial meaning the schema does not: to_bar only defines a stop point because playback starts at the insert marker unless from_bar is supplied, and loop_times pairs with from_bar inside the loop. That interaction semantics is genuine added value over per-parameter descriptions.

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 and resource ("Starts playback") plus the default origin (insert marker), which is exactly the distinction an agent needs against the sibling 'stop'. It also clarifies the two playing modes (bounded by to_bar, or loop_times) so the tool is distinguishable from set_loop.

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 explicit conditional guidance: loop_times requires the loop to be on via set_loop, and without from_bar/to_bar the call is a no-op while already playing, whereas from_bar jumps. It references the relevant sibling for the prerequisite but never states the reverse (use 'stop' to halt) or what happens on invalid ranges.

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