Skip to main content
Glama

set_fills

Destructive

Set fill color on a single Figma node by providing nodeId and hex color. Choose to replace existing fills or append a new fill on top.

Instructions

Set the fill color on a single node (takes one nodeId, not an array). Use mode='append' to stack a new fill on top of existing fills instead of replacing them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo'replace' (default) overwrites all existing fills; 'append' stacks this fill on top of existing ones
colorYesFill color as hex: #RRGGBB e.g. #FF5733 or #RRGGBBAA e.g. #FF573380 for 50% alpha
nodeIdYesNode ID in colon format e.g. '4029:12345'
opacityNoFill opacity 0–1 (default 1). Combines multiplicatively with any alpha in the color hex.
Behavior4/5

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

Description aligns with annotations (destructiveHint=true indicates overwrite behavior) and adds context that it handles a single node and the distinction between replace/append modes, enhancing transparency beyond annotations.

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?

Two sentences, front-loaded with the action and key distinguishing feature (single node), no redundant words.

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

Completeness5/5

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

Given 4 parameters, no output schema, and no nested objects, the description covers the core behavior (single node, mode options) sufficiently for the agent to use the tool appropriately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. Description adds value by clarifying nodeId takes one value (not array) and explicitly explaining mode behavior, which slightly exceeds the schema detail.

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 clearly states the tool sets fill color on a single node, specifying it takes one nodeId (not an array) and explains mode options, distinguishing it from other node manipulation tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides clear guidance on when to use mode='append' versus the default replace behavior, but does not explicitly state when to use this tool versus alternatives like update_paint_style or other set_* tools.

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