Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Apply a style to a layer

figma_apply_style

Apply a local Figma style to a layer as its fill, stroke, text, or effect style by specifying the target node and style IDs.

Instructions

Applies a local style to a layer as its fill, stroke, text or effect style.

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": {
      "node_id": "<node_id>",
      "style_id": "<style_id>"
    },
    "name": "figma_apply_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFigma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file.
kindNofill
node_idYesNode id, e.g. "12:345" (link form "12-345" also accepted)
style_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the description's marginal duty is to explain side effects. It adds the meaningful constraint that only local styles are applied, but says nothing about whether an existing style is replaced, whether other style properties are cleared, or what happens when the kind mismatches the node (e.g. a text style on a frame).

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 that front-loads the verb and resource, with the four kinds listed compactly and zero filler. It is arguably too terse for a mutation tool, but there is no wasted wording to cut.

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 write operation with four parameters, no output schema and openWorld annotations, the definition is minimally serviceable but incomplete: it does not cover replacement semantics, error conditions, or what the agent gets back after applying. The 'local' qualifier is the only behavioral constraint provided.

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 50%: url, node_id and the kind enum are documented in the schema, while style_id has no description anywhere. The word 'local' in the description implies style_id must reference a local style rather than a library style, which is real added meaning, but the description never names or explains the required style_id parameter directly.

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 uses a specific verb ('Applies') plus resource ('a local style to a layer') and enumerates the four target kinds (fill, stroke, text, effect), so an agent can identify the operation immediately. It does not explicitly differentiate itself from siblings such as figma_create_style or figma_bind_tokens, so it stops short of a 5.

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 or when-not-to-use guidance and no named alternative. The only implicit guidance is the word 'local', which hints that library/remote styles are out of scope, but this is never stated as a routing rule nor contrasted with creating or binding styles.

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