Skip to main content
Glama

studio_music_fit

Fits music to an edit by removing whole bars from the middle or repeating a phrase on the detected beat grid, keeping the real ending and starting on a beat.

Instructions

SOUND: make the music exactly as long as the edit while keeping its real ending — whole bars are removed from the middle (or a phrase repeated) on the detected beat grid and the start lands on a beat. Writes a new WAV (original untouched) and sets options.music. dryRun shows the plan.

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": {
      "projectId": "<projectId>",
      "revision": "<revision>"
    },
    "name": "studio_music_fit"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
authorNo
dryRunNo
targetNo
revisionYes
crossfadeNo
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the concrete mechanism (bar removal or phrase repeat on a beat grid, start snapped to a beat) and, importantly, that a new WAV is written while the original stays untouched and options.music is updated. That explains the non-destructive side effect the annotations only imply via destructiveHint=false. It stops short of covering overwrite behavior for the new file, permissions, or processing cost.

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?

Two sentences, front-loaded with the outcome and followed by the mechanism and side effects, with no filler. The em-dash clause packs in more than a reader may absorb in one pass, but nothing is redundant.

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?

For a mutating tool with no output schema and seven undocumented parameters, the behavioral story is solid (what changes, what is preserved, how to preview), but the parameter and return surface is thin — an agent knows what the tool does yet not what the new WAV path is or how to set crossfade/target precisely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description carries the full burden — but it only explains dryRun (shows the plan) and loosely implies target via 'exactly as long as the edit'. crossfade, file, author, revision, and projectId receive no meaning at all, leaving the agent to guess units, formats, and whether crossfade applies to the seams created by the cuts.

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

Purpose4/5

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

The description uses a specific verb and resource — it makes the music match the edit length by cutting whole bars from the middle or repeating a phrase on the detected beat grid. That mechanism-level detail distinguishes it from a generic duration-fitting tool, though it never names the sibling it differs from (e.g. studio_fit_duration).

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 rather than stated: it says what the operation achieves and that dryRun shows the plan, which hints at a preview-then-apply workflow. It gives no explicit when-to-use versus alternatives, no prerequisites, and no conditions under which an agent should pick a different tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.