Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_apply_style_to_node

figma_apply_style_to_node

Applies a local style to a specified Figma node by node ID, enabling AI agents to update node appearance programmatically.

Instructions

Apply a local style to a node.

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": {
      "nodeId": "<nodeId>"
    },
    "name": "figma_apply_style_to_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
nameNo
nodeIdYes
styleIdNo
styleNameNo
styleTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It doesn't say whether applying a style overwrites existing styling on the node, whether the style must match the node type, or what happens on failure. For a mutation tool this is a significant gap. The only disclosure is the 'local' restriction.

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?

A single short sentence with zero filler and the scope qualifier front-loaded. It is efficient but bordered on under-specification rather than trimmed of excess.

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

Completeness2/5

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

For a mutation tool with six undocumented parameters, no annotations, and no output schema, one sentence is not sufficient. The agent cannot determine how to specify the style (by ID, name, or type) or what side effects to expect, which are essential to calling this 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?

Six parameters at 0% schema description coverage, and the description explains none of them. Critically, only nodeId is required while styleId, styleName, and styleType are all optional and undocumented, leaving the agent guessing how the style is actually identified and what id/name refer to. It adds only the bare notion that a node and a style are involved.

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: 'Apply a local style to a node.' The word 'local' usefully narrows scope to styles already in the file rather than library styles. It does not distinguish itself from nearby tools like figma_bind_variable_to_node, but the operation is unambiguous on its own.

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 when-to-use guidance, no mention of prerequisites (the style must exist locally, which implies create_paint_style/text_style/effect_style/grid_style must run first), and no indication of when to prefer binding a variable instead. The agent must infer the workflow entirely.

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

Deploy Server

Other Tools