Skip to main content
Glama

AppScreenDesign 3D Screenshot Studio

set_background

DestructiveIdempotent

Set an image, gradient, solid or glow background for a project or panel. Image supports crop, cover focal point, blur and opacity. Panel scope updates connected hero panels atomically. Null restores inheritance. Read get_project first and pass expectedRevision.

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": {
      "projectId": "<projectId>",
      "scope": "<scope>",
      "background": "<background>"
    },
    "name": "set_background"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYes
localeNo
positionNo
projectIdYes
backgroundYes
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / position / maximum
      Previous value: -40New value: +190
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true and openWorld=false, so the safety profile is covered. The description adds real context beyond that: null restores inheritance, panel scope fans out atomically to connected hero panels, and image backgrounds support crop, cover focal point, blur and opacity. It does not spell out exactly what prior background data is discarded, which keeps it from a 5.

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?

Five short sentences, each carrying distinct information: capability, image modifiers, panel atomicity, null semantics, and the prerequisite. Nothing is redundant and the core capability is front-loaded.

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 destructive mutation with no output schema and zero schema-level parameter descriptions, the definition supplies the essential workflow (read get_project, pass expectedRevision), scope semantics, and reset behavior. The remaining gap is the undocumented locale and position parameters and no indication of what the call returns.

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 0%, so the description carries the burden and does explain the three required parameters (background kinds and null semantics, scope values, expectedRevision). However, the optional locale and position parameters are never mentioned, leaving two of six parameters undocumented anywhere in the definition.

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 names a specific verb and resource ("Set ... background") and enumerates the supported background kinds (image, gradient, solid, glow) plus the two scopes (project, panel). It is clear, but it never distinguishes itself from the sibling set_background_layers, which an agent could plausibly confuse with this tool.

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?

It gives a concrete precondition ("Read get_project first and pass expectedRevision") and explains the two scope behaviors, including that panel scope updates connected hero panels atomically. It stops short of stating when-not to use it or naming the layer-based alternative.

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.

Resources