Skip to main content
Glama

AppScreenDesign 3D Screenshot Studio

set_layer

DestructiveIdempotent

Patch one layer: set name to rename its editor label without changing its ID or image source; move, resize, colour/device or studioPlane depth/pose. Text style accepts outline and shadow (get_text_controls). Text style and emphasis entries accept highlightRadius, highlightPaddingX, highlightPaddingY in font-size units (0..1). Null clears optional effects. A shared hero edit applies atomically.

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>",
      "position": "<position>",
      "layerId": "<layerId>",
      "patch": "<patch>"
    },
    "name": "set_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYesFields to merge into that layer, e.g. {"box":{"x":0.1}}. Use null to clear optional fields.
localeNoLocalization to edit. Omit for the project’s main localization.
removeNoRemove the layer instead of patching it.
layerIdYesA layer id from get_project or the template scene.
positionYesWhich panel to edit. Layers belong to a panel.
projectIdYes

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.2/5.0
Behavior4/5

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

The annotations already declare this is a destructive, non-read-only, idempotent operation. The description adds useful behavior beyond that: null clears optional effects, text style accepts outline and shadow, highlight-related fields use font-size units, and shared hero edits apply atomically. It does not cover permission or rate-limit behavior, but the key mutation semantics are disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense and front-loads the core operation, then adds field-specific details. Most sentences carry useful semantic information, though the wording is packed with domain terms and could be slightly easier to scan. It avoids obvious filler.

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 complex destructive patch tool with a nested patch object and no output schema, the description gives substantial field-level context and atomicity behavior. However, it omits the remove parameter, which is important for a destructive operation, and does not explain locale handling. It is adequate but has clear gaps for an agent deciding how to invoke the mutation safely.

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?

The schema covers most parameters at 83%, but the patch object is open-ended and benefits heavily from the description. The description adds meaningful field-level guidance for renaming, moving, resizing, colour/device changes, studioPlane depth and pose, text style, emphasis, and highlight fields. It does not mention the remove or locale parameters, but its patch semantics are substantially richer than the raw 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?

The description uses a specific verb and resource: patch one layer. It enumerates the main editable aspects such as name, position, size, colour, device, studioPlane, and text effects, making the tool's scope clear. It also distinguishes the text-controls reference to get_text_controls.

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?

The description provides clear context for using the tool: patching a layer by ID, clearing optional effects with null, and noting that shared hero edits are atomic. It points to get_text_controls for text style controls. It does not explicitly state when not to use this tool versus alternatives such as set_panels or set_studio.

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