Skip to main content
Glama

Set score tempo

score.set_tempo
Idempotent

The tempo of a score in beats per minute: one value for all of it (tempo), or changes at beats (changes; one or the other). A change at beat 0 sets the opening tempo; ramp true glides from the change before and arrives at this one's tempo on its beat. A stretch of n beats at tempo T lasts 60 × n / T seconds, so a change of tempo can put any moment of the picture exactly on a beat. Notes and notes regions keep their beats, so their times in seconds move; audio regions keep their length in seconds unless they were placed with fit_beats. Returns the new score_id (edit that one next), the score's length, and where each bar now starts in seconds and frames.

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

Input Schema

NameRequiredDescriptionDefault
tempoNoOne tempo for the whole score, in beats per minute
changesNo[{at_beats, tempo, ramp}]: each replaces a change on its beat or adds one
score_idYesThe score to edit

Output Schema

NameRequiredDescriptionDefault
barsYesWhere each bar starts, up to the end of the score
lengthYesThe end of the score: where its last region ends
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

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and idempotentHint=true; the description goes well beyond by disclosing side effects on other material — notes/notes regions keep beats so their seconds move, audio regions keep seconds unless placed with fit_beats. It also explains that the response carries a new score_id to edit next, which is exactly the kind of chained-edit context annotations cannot express.

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?

It is a single dense paragraph but front-loaded with the essential tempo-vs-changes choice before the math and return details. Most sentences earn their place; the closing inventory of return values is partly redundant because an output schema exists, and the phrase 'one or the other' is slightly terse.

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

Completeness5/5

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

For a mutation with thin annotations and a full output schema, the definition covers what an agent still needs: parameter interplay, which arrangement material shifts in time, and the follow-up score_id. Nothing required to invoke it correctly 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 100%, so baseline is 3, but the description adds real meaning: the beat-0 rule (opening tempo), the glide semantics of ramp, and the timing identity 60 × n / T that tells the agent how tempo maps to seconds. Only the ramp wording largely restates the schema's own text, which is why it is not a 5.

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 names a specific verb and resource (setting a score's tempo in BPM) and immediately splits the operation into its two mutually exclusive forms, whole-score `tempo` vs per-beat `changes`. An agent can tell exactly what domain this touches and cannot confuse it with sibling setters such as score.set_meter or score.set_automation.

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 states the core selection rule explicitly with '(tempo), or changes at beats (changes; one or the other)', and explains the special case of a change at beat 0 and what ramp does, giving the agent real routing logic. It does not spell out a when-not-to-use case or name an alternative tool, which keeps it short of a 5.

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.