Skip to main content
Glama

Split region

score.split_region
Idempotent

Cut a region in two at a beat. The left piece keeps its id; region_id is the new right piece. No note is changed: each stays in the piece it starts in, at its full length. Returns the new score_id (edit that one next) and both pieces’ positions.

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>",
      "score_id": "<score_id>"
    },
    "name": "score.split_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
at_beatsNoWhere to cut, in the score's beats
score_idYesThe score to edit
region_idYesThe region
at_secondsNo

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true), the description discloses the non-obvious preservation semantics: no note is changed and each stays in the piece it starts in at full length. That is exactly the kind of side-effect detail an agent needs for a mutation. It slightly restates the return payload already covered by the output schema, and doesn't reconcile the idempotentHint with a split that could be repeated on the same region_id.

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?

Three short sentences, front-loaded with the core action and the id semantics, with zero filler. The parenthetical follow-up cue is compact and useful.

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 mutation tool with an output schema and four parameters, the description covers what changes, what is preserved, and what comes back, which is nearly everything needed. The remaining gap is the ambiguity between at_beats and at_seconds and any constraint on valid cut points.

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?

The description adds real meaning for region_id by explaining that the left piece keeps it and the new right piece is returned as a fresh score_id, which the schema does not say. But with 75% schema coverage it leaves at_seconds completely unaddressed and never explains how at_seconds relates to at_beats or which wins if both are supplied.

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?

The description opens with a specific verb and resource ('Cut a region in two at a beat'), which an agent can immediately distinguish from siblings like score.trim_region, score.move_region, or clip.split. It goes further and states the id outcome, so the operation's effect is unambiguous before opening any schema.

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?

Usage is implied by the operation itself and by the follow-up hint '(edit that one next)', which tells the agent which id to act on afterward. However, it never states when to split versus trim, move, or clip-split, and gives no preconditions (e.g., cut point must fall inside the region), so the agent must infer routing from sibling names alone.

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.