Skip to main content
Glama

audio_set_gain

Set a timeline clip's audio gain in dB and verify the change by readback; reports unsupported if the Resolve version rejects the property.

Instructions

Set clip gain in dB (Resolve exposes clip level as AudioVolume). Attempted via TimelineItem.SetProperty and verified by readback; reports 'unsupported' when this Resolve version rejects the property.

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": {
      "gainDb": "<gainDb>"
    },
    "name": "audio_set_gain"
  }
}

Input Schema

NameRequiredDescriptionDefault
gainDbYes
itemIdNoTimeline item unique id (from timeline_get_clips)
timelineNoTimeline name or id (default: current timeline)
itemIndexNo1-based position of the clip on the track (transitions are not counted)
trackTypeNoaudio
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.5/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses the mechanism (TimelineItem.SetProperty), the verification step (readback), and a specific failure mode ('unsupported' when the Resolve version rejects the property). Annotations already cover safety (non-destructive, closed-world), so this operational detail is genuine added value. Minor gap: it does not say what the readback confirms or whether a failed set leaves the clip unchanged.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the core action front-loaded, followed by implementation and failure context. No filler, and the parenthetical about AudioVolume is load-bearing rather than decorative.

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 so return payloads need not be described, and the failure path is covered. However, with six parameters and two distinct ways to target a clip, the definition leaves the agent without guidance on which identifier combination to supply or how gainDb bounds (-100 to 24) map to real-world levels.

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 coverage is 50%, so the schema documents some parameters (itemId, timeline, itemIndex) while others (gainDb bounds, trackIndex, trackType) rely on structured constraints alone. The description only indirectly explains gainDb ('in dB') and says nothing about the two alternative clip-identification paths (itemId vs itemIndex + trackIndex), which is the main semantic ambiguity an agent faces.

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 ('Set clip gain in dB') and clarifies the Resolve-side property name (AudioVolume), which helps an agent map intent to implementation. It does not differentiate itself from the close sibling audio_set_volume, so an agent cannot resolve that ambiguity from the text alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no when-to-use or when-not-to-use guidance, and never names an alternative such as audio_set_volume or color_set_gain despite them being adjacent siblings. The agent must infer the choice purely from the tool name.

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