Skip to main content
Glama

Trim region

score.trim_region
Idempotent

Move the start or end edge of a region. No note is changed: one that starts outside the new edges stays stored but silent, one that starts inside sounds at its full length; an audio region shows more or less of its source. Returns the new score_id (edit that one next) and where it now sits.

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": {
      "region_id": "<region_id>",
      "edge": "<edge>",
      "score_id": "<score_id>"
    },
    "name": "score.trim_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
edgeYesThe edge to move
score_idYesThe score to edit
to_beatsNoWhere it goes
region_idYesThe region
to_secondsNo

Output Schema

NameRequiredDescriptionDefault
parentYesThe version this edit started from
regionYes
changedYesWhat the edit added, removed or modified
score_idYesThe new version: edit this one next (older ids stay valid)
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the exact semantic effect: notes outside the new edges are kept but silent, notes starting inside sound at full length, and audio regions reveal more or less source. This is consistent with destructiveHint=false and idempotentHint=true, and adds real information an agent cannot get from the flags.

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?

Three clauses, front-loaded with the action, then the effect on existing content, then the return value and next step. Dense but every sentence carries content; the long second sentence is slightly run-on but not padded.

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?

With an output schema present and annotations covering safety, the description's job is behavior and follow-up, and it delivers both. The remaining gap is not distinguishing the two optional position parameters (to_beats vs to_seconds), which matters for correct invocation of a 5-parameter tool.

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 80%, so the schema already documents edge, score_id, to_beats, and to_seconds. The description only echoes the edge concept ("start or end") and does not clarify that to_beats and to_seconds are alternate ways to express the destination position, which is the one ambiguity the schema leaves.

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?

"Move the start or end edge of a region" gives a specific verb (move an edge) and resource (region), which is meaningfully narrower than moving or splitting a whole region. It stops short of naming an explicit sibling contrast (e.g. score.move_region vs clip.trim), so the boundary is inferred rather than stated.

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 parenthetical "edit that one next" is genuine follow-up guidance for chaining edits, but there is no statement of when to trim versus move, split, or use clip.trim. Usage is implied by the operation described rather than by explicit conditions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.