Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

apply_style

Applies a local fill, stroke, text, or effect style to a Figma node by style ID, using IDs retrieved with get_styles.

Instructions

Apply a local fill, stroke, text or effect style (IDs from get_styles)

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>",
      "styleId": "<styleId>",
      "kind": "<kind>"
    },
    "name": "apply_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
nodeIdYesThe node's ID
styleIdYesThe style's ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.2/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. The word "local" usefully signals that library/remote styles cannot be applied, but the description never addresses whether applying a style overwrites existing local styling, whether the node must be unlocked, permission requirements, or what is returned. For a mutation tool with zero annotation coverage this is thin.

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 efficient sentence with the action front-loaded and the ID-source hint trailing in parentheses. Nothing is wasted, though the brevity leaves no room for the kind-matching caveat an agent likely needs.

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 three-required-parameter mutation tool with no output schema and no annotations, the description covers what to pass and where IDs come from. It omits the key question of whether the kind parameter must match the style's actual type, and says nothing about the post-apply state of the node.

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 coverage is 67%, with nodeId and styleId already documented in the schema and kind covered by an enum. The description adds provenance for styleId (get_styles) and restates the kind values already present in the enum, so it adds modest meaning beyond the structured fields without explaining the kind/style consistency requirement.

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 states a specific verb (Apply) and resource (style) and enumerates the supported style kinds (fill, stroke, text, effect). It names get_styles as the ID source, which helps separate it from unrelated siblings, but it does not distinguish itself from set_text_style or bind_color_variable, which plausibly overlap.

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?

The parenthetical "(IDs from get_styles)" implies a prerequisite lookup step, which is useful workflow guidance. However, there is no statement of when to prefer this over set_text_style or bind_color_variable, nor any exclusions or failure conditions.

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