Skip to main content
Glama

apply_style

Apply a local Figma style by name or ID to nodes to set fill, stroke, text, effect, or grid properties in one step.

Instructions

Apply a local style (by name or id) to nodes.

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

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
styleYesStyle name or id
targetNoInferred from the style type when omitted (paint -> fill)
nodeIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and it falls short. It does not say whether applying a style replaces or merges existing fill/stroke/effect properties, whether the operation is reversible, whether it requires edit permissions, or what happens when a style name matches multiple styles.

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 nine-word sentence with zero filler, and the core action is front-loaded. It is efficient, though the brevity edges into under-specification rather than disciplined concision.

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?

This is a mutation tool with no annotations and no output schema, over four parameters, and the description leaves key behaviors (replacement semantics, conflict resolution, failure modes) unstated. The schema covers basic parameter meanings, but the description does not fill the gaps an agent needs before invoking a destructive-ish write.

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 description coverage is 75%, with file and target already documented in the schema and target's enum plus inference rule spelled out there. The description's '(by name or id)' only restates the style parameter's own schema text and adds nothing about nodeIds or how style-type inference interacts with an explicit target.

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+resource ('apply a local style... to nodes') and clarifies that the style can be referenced by name or id. It implicitly distinguishes itself from the create_*_style siblings by being an application rather than a creation operation, though it never names or contrasts them.

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 qualifier 'local' weakly hints that library/remote styles may behave differently, but the agent must infer that rather than being told.

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