Skip to main content
Glama

Set score meter

score.set_meter
Idempotent

Beats in a bar and the note that is one beat, from a bar on. Notes keep their beats; the bar lines move. Returns the new score_id (edit that one next) and where each bar starts.

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

Input Schema

NameRequiredDescriptionDefault
meterYes{beats, unit}: beats in a bar and the note that is one beat, e.g. {beats: 4, unit: 4}
from_barNoThe bar it starts at. Default 1
score_idYesThe score to edit

Output Schema

NameRequiredDescriptionDefault
barsYesWhere each bar starts, up to the end of the score
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
bars_totalYesHow many bars there are (up to 2,000 are listed)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), but the description adds the critical non-obvious behavior: re-barring preserves note beat positions while moving bar lines, and the call yields a NEW score_id that should be used for follow-up edits. That copy-on-write implication is exactly the kind of context an agent cannot get from annotations and would otherwise get wrong. It stops short of saying whether the original score remains valid or how much of the score is affected.

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?

Two sentences with no padding, and the return-value fact is front-loaded appropriately. However, the opening sentence is a grammatical fragment ('Beats in a bar and the note that is one beat, from a bar on.') that costs the reader a parse before the meaning lands, which undercuts the otherwise compact structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description does not need to enumerate return values, yet the mention of the new score_id is still the highest-value line. What is missing for a mutation that reflows the score: whether the input score_id becomes stale, what happens to bars before from_bar, and whether edits after this call must target only the returned id. Adequate for a 3-parameter nested tool, but there are clear gaps.

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 description coverage is 100%, so the baseline is 3, and the description rises above it by explaining the semantics behind two parameters: 'beats in a bar and the note that is one beat' for the meter object, and 'from a bar on' for from_bar, clarifying that the change applies from that bar forward rather than to the whole score. It adds real meaning the schema's terse field descriptions do not convey. It does not clarify how from_bar interacts with existing bar numbering after reflow.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description defines what a meter is (beats per bar plus beat unit) and its effect ('Notes keep their beats; the bar lines move'), which lets an agent infer the operation. But it never states the action in verb+resource form — no 'sets the time signature of a score from a given bar' — so the purpose is implied rather than stated. It does not distinguish itself from siblings like score.set_tempo, which reflows a different musical dimension.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use, when-not-to-use, or alternative named. The one actionable hint is workflow-oriented: 'Returns the new score_id (edit that one next)', which tells the agent to chain subsequent edits onto the returned id. That is useful, but it is not usage guidance in the sense of selecting this tool over another.

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.