Skip to main content
Glama

read_automation

Read-only

Reads a Session clip's automation envelope without creating or changing it, sampling explicit times or a start/end/step grid and returning native values, parameter limits, and missing-envelope status.

Instructions

Read a Session clip envelope without creating or changing it.

Choose explicit times OR a start/end/step grid (defaults 0 to clip end, every beat); end is included only when aligned with the grid. At most 1024 finite samples within the clip per call. Returns native values, optional display text, parameter min/max/current value and has_envelope=false for a missing envelope. Samples are Live's actual stepped envelope, not a reconstruction of the supplied control points. On Live 11 an exact step boundary can return the value just before that step; sample just after the boundary to check the new value.

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": {
      "track_index": "<track_index>",
      "clip_index": "<clip_index>",
      "device_index": "<device_index>",
      "parameter": "<parameter>"
    },
    "name": "read_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
stepNo
startNo
timesNo
parameterYesParameter name or zero-based parameter index returned by get_device_parameters.
clip_indexYesZero-based Session-view clip-slot index on the track.
track_indexYesZero-based index of a regular track in the Live set.
device_indexYesZero-based device position in the target track's device chain.

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, yet the description still adds substantial behavioral detail: a hard 1024-sample-per-call ceiling, the rule that 'end' is only included when grid-aligned, that samples reflect Live's actual stepped envelope rather than a reconstruction of control points, and a Live 11 off-by-one quirk at exact step boundaries with the workaround ('sample just after the boundary'). This is exactly the kind of non-obvious behavior an agent could not infer from the schema or 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?

The purpose is front-loaded in the first sentence and each subsequent sentence carries a distinct operational fact (limits, grid rules, return shape, Live 11 caveat). The parenthetical defaults and the line-break-broken sentence flow slightly awkwardly, but no sentence is filler.

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 an 8-parameter, 4-required tool with an output schema, the description covers the sampling semantics, the sample cap, the return-shape highlights (native values, display text, min/max/current, has_envelope=false), and the platform quirk. Gaps are modest — no mention of error conditions (e.g. non-automatable parameter, missing clip) or how track/clip/device indices interact — but nothing essential to a correct call is missing.

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 50%, and the description fills the most important gap by explaining the mutually exclusive sampling modes ('times' vs start/end/step), the default range and step, and the conditional inclusion of 'end'. It does not add anything about track_index, clip_index, device_index, or parameter, but those already carry schema descriptions pointing at get_device_parameters.

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?

The opening sentence states a specific verb (read) and resource (Session clip envelope) and immediately scopes it with 'without creating or changing it', which implicitly distinguishes it from the write/clear automation siblings. It stops short of naming an alternative explicitly, but an agent can tell what this does and what it does not.

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 gives solid guidance on how to invoke the tool — choose explicit 'times' OR a start/end/step grid, with defaults of 0 to clip end at every beat — but that is parameter-mode guidance rather than when-to-use-this-vs-a-sibling guidance. There is no explicit statement about when to prefer this over write_automation, clear_automation, or read_clip_notation beyond the negative 'without creating or changing it'.

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