Skip to main content
Glama

set_effects

Apply or append shadow and blur effects to Figma nodes, with optional batch node IDs. Clears all effects by passing an empty list and replaces existing effects unless append mode is set.

Instructions

Set effects on nodes. Replaces existing effects by default ([] clears all; mode 'append' adds). Shadows: color (alpha via #RRGGBBAA, default #00000040), x, y (default 0,4), blur (default 4), spread, blendMode, showShadowBehindNode (drop shadow only). Blurs (LAYER_BLUR / BACKGROUND_BLUR) use only blur and visible. Setting effects detaches any effect style. Returns per-node results ({id, ok, ...} or {id, error}); one failing node does not abort the batch.

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": {
      "nodeIds": "<nodeIds>",
      "effects": "<effects>"
    },
    "name": "set_effects"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
modeNoDefault replace
effectsYesEffects list; [] clears
nodeIdsYesFigma node ids, e.g. ['12:34']

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the default replace semantics, the destructive side effect of detaching any effect style, and that one failing node does not abort the batch. It omits permissions requirements and whether changes are undoable, which keeps it short of 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?

Front-loads the core operation, then mode semantics, then per-type field constraints, then return/failure behavior. Dense parentheticals but every clause adds information an agent would otherwise have to guess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers mutation semantics, defaults, type-specific field rules, side effects, and a per-node return/failure contract despite there being no output schema. Nothing material is missing for an agent to invoke this correctly across a batch of nodes.

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 baseline is 3, but the description adds genuine meaning: per-type defaults for x, y, blur and color, that showShadowBehindNode applies only to drop shadows, and that blur types use only blur and visible. That is semantic guidance the schema alone does not convey.

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?

States a specific verb and resource ("Set effects on nodes") that is clearly distinct from sibling setters like set_stroke, set_gradient, and set_variable_mode. It doesn't explicitly name an alternative or a boundary, but the resource is unambiguous enough for an agent to discriminate it.

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?

Explains the replace-vs-append choice and that [] clears all, which is real usage guidance. However, it never says when to prefer this over create_effect_style or style-based approaches, nor any prerequisite/auth context, so the guidance is implied rather than explicit.

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