Skip to main content
Glama

Set Input Volume

obs_set_input_volume
Idempotent

Set an OBS audio input's volume in decibels or as a percentage by specifying the exact source name and exactly one volume value.

Instructions

Set the volume of one audio input, in decibels or as a percentage. Give exactly one of volume_db and volume_percent. 0 dB and 100% both mean unchanged level.

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": {
      "input_name": "<input_name>"
    },
    "name": "obs_set_input_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
volume_dbNoVolume in dB. 0 is unchanged, -100 is silent, up to +26
input_nameYesExact input (source) name, as returned by obs_list_inputs
volume_percentNoVolume as a percentage of the source level. 100 is unchanged, 0 is silent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and readOnlyHint=false, so the mutation/safety profile is known. The description adds little beyond that - it does not say what happens if input_name is unknown or whether the level persists across restarts. Its useful contribution, the parameter exclusivity rule, is more semantic than behavioral.

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?

Three short sentences, front-loaded with the action, then the constraint, then the neutral-value caveat. Nothing is padded and every sentence carries usable information.

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?

For a low-complexity mutation with full schema coverage and annotations covering idempotence and safety, this is sufficient to call correctly. Minor gap: no mention of failure behavior for an unknown input name, which an agent might want given the error-prone string argument.

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 coverage is 100%, so baseline is 3, but the description adds a real constraint absent from the schema: exactly one of volume_db and volume_percent must be supplied (the schema has no oneOf/anyOf enforcement). The restatement of neutral values duplicates the parameter descriptions.

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?

Names a specific verb and resource: 'Set the volume of one audio input,' plus the two unit modes. An agent can tell it apart from muting (obs_set_input_mute) or settings changes (obs_set_input_settings) by the resource-and-property combination, though no sibling is named explicitly.

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 'Give exactly one of volume_db and volume_percent' rule tells the agent how to invoke it, and the note that 0 dB and 100% are no-ops prevents pointless calls. There is no explicit guidance on when to prefer this over mute or over broader input-settings tools.

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