Skip to main content
Glama

Record a take

score.record

Take a performance from the user into a score: pads they tap, or their microphone, while a range of the score plays in a loop under them. click adds a click on each beat; count_in_beats plays that many clicks before the take starts. A chat app that displays this server's views shows it in the chat: a pad for each pitch in pads, or a record button, and a slider that slows or speeds what they hear while they play (the score's tempo is not changed); anywhere else the url in the result opens the same in a browser. Returns at once a url and a job_id; the take arrives through job.get once they send it: a new score_id and the region_id of a new region on the part over the loop's range, where it sits in beats, seconds and frames, and the delay the device took off each position. Taps come back as that region's notes, each at the exact beat it was played on, nothing moved to a grid: a tap on a later pass of the loop lands that many loop lengths on, one in the count-in before the loop; those are stored outside the region, silent until it is widened, and listed. pads names the pitches that get a pad; velocity is what a tap is stored with where the device measures none (most phones), length_beats each note's length; pads need all three. A microphone take comes back as an audio region and its media_id: the recording as made, its first sample on the beat that was heard; recorded over a speaker it holds the loop too, and the result gives where cross-correlation finds the loop in it beside the device's own placing. One take a session; a session waits 24 hours. Limits of the platform: a loop up to 120 s at the speed played, 2,000 taps, 64 passes, 64 pads, a microphone take up to 600 s, 4 sessions waiting at once, speed 0.25 to 2.

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>",
      "part_id": "<part_id>",
      "input": "<input>"
    },
    "name": "score.record"
  }
}

Input Schema

NameRequiredDescriptionDefault
padsNoPads, required: the pitches that get a pad, in the order shown, as in notes (score.get lists which pitch plays what on a drum kit or a sliced sampler)
clickNotrue plays a click on each beat under them
inputYesWhat they perform with
part_idYesThe part the take goes on; its instrument is what the pads play
score_idYesThe score to play under them
velocityNoPads, required: 1 to 127, the strength a tap is stored with where the device measures none (most phones do not)
from_beatsNoStart of the loop. Default 0
until_beatsNoEnd of the loop. Default the score's end; required in a score with no regions
length_beatsNoPads, required: the length each tapped note is stored with (a tap gives its moment, not how long it lasts)
count_in_beatsNoClicks played before the take starts, on the beats of the meter leading into the loop (six a bar in 6/8). Default 0

Output Schema

NameRequiredDescriptionDefault
urlYesThe same pads or record button as a page in a browser, for this take only; it needs no sign-in
hintYes
loopYes
padsNoPads: the pads shown, in order
inputYes
expiryYes
job_idYesjob.get gives the take once they send it
statusYes
uploadNoMicrophone: the staged upload the view sends the recording to
warningsYes
expires_atYesWhen the session stops taking a take
native_viewYesFor apps, nothing for you to act on: an app with its own built-in version of this view (this component, this version) shows that in place of the web view

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only give mutation/safety flags (readOnlyHint=false, non-idempotent, non-destructive); the description adds substantial behavior beyond them: the async url+job_id return, job.get as the retrieval path, the one-take-per-24-hour-session lifecycle, off-grid taps stored outside the region and silent until widened, and a full list of platform limits (120 s loop, 2,000 taps, 64 passes, 64 pads, 600 s mic, 4 waiting sessions, speed 0.25–2). It also explains the microphone cross-correlation result. That is exactly the extra context annotations cannot carry.

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?

The purpose is front-loaded and every sentence is on-topic, but the middle is a dense semicolon-chained wall covering return payload shapes, frames, device delay offsets and cross-correlation detail. Several of those clauses are lower-value because an output schema exists, and the lack of sentence breaks makes it hard to scan.

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 ten-parameter, asynchronous, human-in-the-loop recording tool, the description covers the interaction model, retrieval path, session lifetime, per-modality outcomes, off-grid tap semantics and hard limits. Even though an output schema exists, the extra explanation of what comes back via job.get is genuinely useful for a tool whose result is not delivered in the call response.

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 description coverage is 100%, so the schema already documents all ten parameters. The description restates rather than extends: click, count_in_beats, pads, velocity and length_beats are all re-explained in terms the schema already uses, including the 'pads need all three' dependency which the schema labels with 'required' on each of those properties. Baseline 3 is appropriate.

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 opening sentence names a specific verb and resource — 'Take a performance from the user into a score' — and immediately enumerates the two modalities (pads tapped, microphone) with the looping playback context. This is unmistakably a live-capture tool, distinct from the add_notes/add_region siblings that edit a score statically.

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 tells the agent the practical context clearly: the take only exists once a human interacts with the url in a chat view or browser, and results must be fetched with job.get. It also states lifecycle constraints ('one take a session; a session waits 24 hours'). It never says when NOT to use it (e.g. programmatic note entry via score.add_notes), so it falls short of explicit exclusions.

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.