Skip to main content
Glama

apply_style_to_node

Destructive

Apply existing Figma local styles to specific nodes by linking paint, text, effect, or grid style IDs to target elements for design consistency.

Instructions

Apply an existing local style (paint, text, effect, or grid) to a node, linking the node to that style.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesTarget node ID in colon format e.g. 4029:12345
styleIdYesStyle ID to apply (from get_styles)
targetNoFor paint styles only — apply to 'fill' (default) or 'stroke'
Behavior3/5

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

Annotations cover safety (destructiveHint=true, readOnlyHint=false) and idempotency. The description adds valuable behavioral context by specifying 'linking' (creating a reference relationship rather than embedding values), but omits what happens to existing node properties (e.g., whether direct fills are removed when a paint style is applied).

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?

The description is a single, efficient sentence (16 words) with zero redundancy. It front-loads the action verb, immediately qualifies the resource type, and ends with the critical behavioral detail ('linking'), making every word essential.

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

Completeness4/5

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

For a 3-parameter mutation tool with complete annotations and no output schema, the description provides adequate conceptual coverage. It could be improved by noting whether applying a style replaces or merges with existing properties, but this is a minor gap given the richness of structured data.

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?

With 100% schema description coverage, the schema fully documents all three parameters including the colon format for nodeId and the constraint that 'target' applies only to paint styles. The description adds no additional parameter semantics beyond the baseline, but none are needed given the comprehensive schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Apply') and resource ('local style'), enumerates the supported style types (paint, text, effect, grid), and distinguishes from siblings like set_fills and create_*_style by emphasizing 'existing' and 'linking' semantics.

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 description implies prerequisites by stating 'existing local style,' suggesting the style must be retrieved first (likely via get_styles). However, it lacks explicit when-to-use guidance versus alternatives like set_fills/set_strokes or warnings about the destructive replacement of direct properties.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vkhanhqui/figma-mcp-go'

If you have feedback or need assistance with the MCP directory API, please join our Discord server