Skip to main content
Glama

Show or Hide a Source in a Scene

obs_set_scene_item_enabled
Idempotent

Show or hide one source in an OBS scene, like the eye icon. Use scene item ID or source name to target the source and set its enabled state.

Instructions

Show or hide one source in one scene (the eye icon in OBS). Identify the item by scene_item_id or source_name.

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": {
      "scene_name": "<scene_name>",
      "enabled": "<enabled>"
    },
    "name": "obs_set_scene_item_enabled"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYestrue to show the source, false to hide it
scene_nameYesExact scene name, as returned by obs_list_scenes
source_nameNoSource name, used to look the item up when scene_item_id is not given
scene_item_idNoScene item id from obs_list_scene_items. Takes precedence over source_name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false and openWorld=false, so the safety profile is structured. The description contributes the concrete effect (visibility toggle only, nothing removed) and maps it to the familiar eye icon, but adds nothing about what happens when the identifier is stale or whether the change is scene-local.

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 short sentences, zero filler, with the action stated first and the item-identification rule second. Nothing here could be removed without losing 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 two-required-parameter mutation with full annotation coverage and no output schema, the description supplies enough to call it correctly. Only edge-case behavior (stale IDs, missing scene) is unaddressed, which is minor at this complexity.

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 description coverage is 100% and the schema itself explains 'true to show, false to hide' and that scene_item_id takes precedence over source_name. The description's mention of the two identification routes largely restates the schema, adding no new syntax or constraint detail.

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 pair ('show or hide one source in one scene') and anchors it with a concrete UI referent ('the eye icon in OBS'). An agent can distinguish this from obs_set_scene_item_transform or obs_remove_scene_item purely from the verbs, without opening a schema.

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 by the scope ('one source in one scene') and the identifier options, but there is no explicit when-to-use or when-not guidance, and no named alternative for related operations like removing or transforming a scene item. It gives correct context for selecting the right item but leaves routing to inference.

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