Skip to main content
Glama

audio_trim

Destructive

Trim the head or tail of an audio timeline item to shorten or tighten clips in DaVinci Resolve. This destructive edit requires explicit confirmation before it changes the timeline.

Instructions

Trim an audio item's head/tail. Re-placement based (see clip_trim/clip_split): item-level audio adjustments are not carried over. DESTRUCTIVE: requires confirm: true after explicit user confirmation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audio_trim"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdNoTimeline item unique id (from timeline_get_clips)
confirmNoDestructive operation: must be true, and only after the user explicitly confirmed it. Without it the tool only explains what it would do.
trimEndNo
timelineNoTimeline name or id (default: current timeline)
itemIndexNo1-based position of the clip on the track (transitions are not counted)
trackTypeNoaudio
trimStartNo
trackIndexNo

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's added value is the consequence: item-level audio adjustments are not carried over, i.e., prior gain/EQ/fade work on the item is lost. That is a genuinely useful data-loss disclosure beyond the annotation flag. The refusal-without-confirm behavior is described only in the schema, not in the tool description.

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?

Three short sentences, front-loaded with the action and the destructive warning, with no filler. The only weak point is the unexplained "Re-placement based" phrasing, which costs a few tokens of comprehension without adding clarity.

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 and annotations cover the safety profile, so the description needn't explain returns. However, for an 8-parameter destructive operation it leaves the trim amount semantics entirely undocumented, which is the one thing an agent most needs before constructing the call.

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?

With 8 parameters and only 50% schema description coverage, the description must carry the undocumented half, but it says nothing about trimStart/trimEnd units (frames, ms, or seconds) or whether a zero default means "no trim on that side." It only echoes the confirm gate that the schema already documents in full.

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?

States a specific verb and resource: "Trim an audio item's head/tail," which is clearly narrower than the many audio_* mixing/effect siblings. The parenthetical reference to clip_trim/clip_split signals this is the item-level counterpart, though the jargon "Re-placement based" is not explained and slightly blurs the exact scope.

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?

Names the alternatives (clip_trim/clip_split) that an agent should consider, and states a hard precondition: call with confirm: true only after explicit user confirmation. What is not spelled out is the exact condition for choosing this tool over clip_trim, so the routing is implied rather than explicit.

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

Deploy Server

Other Tools