Skip to main content
Glama

Set background

set_background
Idempotent

Replaces the area behind the subject over a program window with a solid, gradient, blur, source image or frame, or strobe sequence. The subject can optionally be held at a specified time. Flash-safety rules apply; sound and zoom remain unchanged.

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": {
      "kind": "<kind>",
      "start": "<start>",
      "end": "<end>",
      "project_id": "<project_id>"
    },
    "name": "set_background"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
kindYes
startYes
styleNoangle, radius, hold_f, stage
colourNo
hold_tNo
regionNoFxRegion: limit to a rect/ellipse/polygon/glyph/face/card
sourceNomedia key | source second | next | previous | FxSource
colour2No
sourcesNo
project_idYesExplicit project identifier for this request. The connection's navigation pointer does not select the target.
source_cropNo[x0,y0,x1,y1] SOURCE-frame fractions; frozen sample, stretched across background
hold_subjectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "FxRegion: limit to a rect/ellipse/polygon/glyph/face/card",
      +  "type": "object"
      +}
    • addedInput schema / properties / source_crop
      Added value: +{
      +  "description": "[x0,y0,x1,y1] SOURCE-frame fractions; frozen sample, stretched across background",
      +  "items": {
      +    "type": "number"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Required immutable scope for this call. Copy the id from list_projects/open_project/project_state; the active-project pointer is never used to guess."New value: +"Explicit project identifier for this request. The connection's navigation pointer does not select the target."
    • addedInput schema / properties / source / type
      Added value: +[
      +  "string",
      +  "number",
      +  "object",
      +  "null"
      +]
  3. Added

TDQS

B3.3/5.0
Behavior4/5

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

Beyond the annotations (mutation, idempotent, non-destructive), the description discloses three genuinely useful behaviors: flash-safety rules apply (a real constraint for strobe sequences), sound and zoom remain unchanged (bounds the blast radius), and the subject may optionally be held at a specified time. It does not state what happens on repeat calls or whether existing backgrounds are overwritten despite idempotentHint, but the added context is substantive.

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 compact sentences with the primary action front-loaded, then the optional behavior, then the constraints. No filler or redundancy.

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?

For a 13-parameter mutation with nested objects and no output schema, the description covers purpose and safety but omits any account of targeting (project_id is explicit, region limits scope), styling, or the required time window. It is adequate to recognize the tool but thin for invoking it correctly.

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 only 38% schema description coverage across 13 parameters, the description needs to compensate but largely does not. Its kind enumeration merely restates the enum, and the only real added meaning is the hold-the-subject-at-a-time hint for hold_t/hold_subject; region, style, colour/colour2, sources, source_crop, and the start/end timing range go unaddressed.

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?

The description uses a specific verb ("Replaces") plus a precisely scoped resource ("the area behind the subject over a program window") and enumerates the supported fill kinds, matching the kind enum. It is clearly a background-compositing tool rather than a grade, frame, or fill tool, though it never names a sibling to contrast with.

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?

There is no explicit when-to-use or when-not-to-use guidance, nor any reference to alternatives such as set_composite, set_photo_fill, or set_screen_frame. The agent must infer selection from the parameter enum alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.