Skip to main content
Glama

Create Input (Source)

obs_create_input

Creates a new OBS input and adds it to a specified scene with configurable kind, settings, and visibility. Fails if an input with the same name already exists.

Instructions

Create a new input and place it in a scene. Get valid kinds from obs_list_input_kinds. Fails if an input with that name exists. Example: kind 'image_source' with settings {"file": "C:/overlays/logo.png"}.

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>",
      "input_name": "<input_name>",
      "input_kind": "<input_kind>"
    },
    "name": "obs_create_input"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledNoWhether the new source is visible in the scene
input_kindYesKind of input, e.g. 'game_capture', 'monitor_capture', 'image_source', 'text_gdiplus_v3', 'browser_source'
input_nameYesName for the new input
scene_nameYesScene to add the new input to
input_settingsNoSettings as a JSON object. Keys depend on the kind; read the current ones first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, so the safety profile is covered. The description still adds real behavior: creation fails on an existing name, and settings are kind-dependent so they should be read first — useful preconditions the annotations don't carry. It stops short of what happens on partial failure or what the call returns, which keeps it at a solid but not rich 3.

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?

Four short sentences, front-loaded with the action, then discovery guidance, then the failure mode, then a compact example. Nothing is redundant with the schema or annotations.

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 mutation tool with five parameters, full schema descriptions and an explicit annotation set, this covers purpose, kind discovery, failure condition and a usage example. Only the return value and post-creation verification path are unaddressed, which is minor for a create call with no output schema.

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 the baseline is 3, but the worked example pairs input_kind with a concrete input_settings object, showing how the two most error-prone parameters relate in practice. That is genuine meaning beyond the schema's per-field text, though the enabled flag and scene placement are only covered by the schema.

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 and resource ('Create a new input') plus the side effect that matters for this API ('place it in a scene'), which separates it from obs_create_scene and the filter tools. An agent can identify exactly what gets created and where without opening the schema.

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?

Explicitly routes the agent to obs_list_input_kinds for valid kinds and warns of the duplicate-name failure, which are the two conditions that most often block a correct call. It lacks an explicit 'when not to use' against neighbours like obs_set_input_settings, but the create-vs-modify distinction is implicit in the verb.

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