Skip to main content
Glama

Track Fit

track_fit

Tune track parameters by rendering stem groups over specified bars, scoring against a reference with perceptual metrics, and optionally applying the best values.

Instructions

Tune a track IN CONTEXT: render the track's whole stem group (stem_map) over bars [a, b] and score it against the same window of the reference stem with the perceptual (CLAP) metric plus band levels. params: {path: [lo, hi]} with 'inst.' (inst.filter.cutoff, inst.oscs.0.detune ...), 'fx..', 'volume_db' or 'pan'. 8-16 bars and 20-40 iterations is a good budget (each iteration renders the window). apply=True writes the best values into the track.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barsYes
seedNo
applyNo
itersNo
trackYes
paramsYes
projectYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Without annotations, the description carries the full behavioral burden and does well: it explains the render/score loop, the per-iteration rendering cost, and that apply=True writes the best values into the track. It still omits what happens when apply=False returns and any precondition on stem_map/reference setup, but the core mutation and computational profile are clear.

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?

The description is dense but front-loads the purpose and then adds operational detail, with no obvious filler. The embedded param examples make it slightly harder to scan than a bulleted list, but it remains appropriately sized for a complex tuning tool.

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?

With no annotations, an output schema, and 7 parameters at 0% schema coverage, the description is substantially complete: it covers the tuning workflow, parameter syntax, budget, and mutation behavior. It stops short of naming alternatives or explaining seed, but the remaining gaps are modest.

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 0%, so the description must compensate. It explains the params object syntax ('inst.<param path>', 'fx.<i>.<param>', 'volume_db', 'pan'), the bars range, the iters budget, and apply behavior. Seed and project/track are not addressed, but the complex parameters are well documented.

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?

States a specific verb+resource: 'Tune a track IN CONTEXT' by rendering its stem group and scoring against a reference stem. This scope clearly separates it from sibling tools like instrument_fit and eq_match, which do not describe whole-stem, in-context rendering against a reference.

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?

The description implies the tool is for tuning track parameters against a reference, and gives a workable bars/iterations budget. However, it never names alternatives or states when to prefer track_fit over instrument_fit, eq_match, or levels_from_ref, so an agent must infer the routing.

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