Skip to main content
Glama

Batch score edit

score.batch
Idempotent

A pipeline of score edits in one call: each op runs on the result of the one before, and a later op takes an id an earlier op made with {"$ref":"ops[N].region_id"} (or part_id, device_id, send_id, note_ids[M]; N counts from 0), or, where the earlier op has a name (as: "drums"), with {"$ref":"drums.part_id"}, which needs no counting. Each op is a score.* edit by name with its own args, less score_id. All apply or none do, and one new score_id comes back. Returns the new score_id, what changed, warnings, and results: [{tool, part_id?, device_id?, region_id?, send_id?, note_ids?}] per op.

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

Input Schema

NameRequiredDescriptionDefault
opsYesScore edits applied in order as one change. An arg may be {"$ref":"ops[2].region_id"} (or part_id, device_id, send_id, note_ids[M]) to use an id made by an earlier op, counted from 0, or {"$ref":"drums.part_id"} for an op named with as
score_idYesThe score to edit

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, it discloses the key traits an agent needs: sequential execution where each op sees the prior op's result, full atomicity ("all apply or none do"), a single new score_id returned, and the exact result shape per op. This is substantially more than the readOnly/destructive/idempotent hints convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

All information is packed into one long, heavily parenthesized sentence with nested ref syntax before the atomicity and return facts. It is dense and hard to scan; the safety-relevant "All apply or none do" arrives late and deserves front-loading.

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?

An output schema exists, yet the description still summarizes the return payload, and atomicity plus ref addressing cover the main complexity of a 22-tool batch dispatcher. Minor gaps remain around failure reporting and whether a new score_id implies a new version, but nothing essential to correct invocation is missing.

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% and the ops description already documents the $ref forms, args-without-score_id, and the as naming, so the description largely restates the schema. It reinforces that N counts from 0 and that named refs avoid counting, but adds no new semantics such as argument merging or conflict rules.

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?

"A pipeline of score edits in one call" states a specific verb and resource, and the description immediately clarifies that each op is a score.* edit applied in order, which distinguishes it from invoking the individual score.set_* / score.add_* siblings one at a time.

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?

It makes the selection condition clear: use this when dependent edits must land together, since "All apply or none do" and one new score_id comes back. It does not explicitly contrast with the sibling edit.batch, so the agent has context but no stated exclusion.

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.