Skip to main content
Glama
Talk to Figma MCP

Talk to Figma MCP

by thanatusdev

set_gradient_fill

Applies a linear, radial, angular, or diamond gradient fill to a Figma node using specified color stops and an optional angle.

Instructions

Set a gradient fill on a node

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>",
      "gradientType": "<gradientType>",
      "stops": "<stops>"
    },
    "name": "set_gradient_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
angleNoRotation angle in degrees (for linear gradients)
stopsYesArray of gradient stops (minimum 2)
nodeIdYesThe ID of the node to modify
gradientTypeYesType of gradient

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.8/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 delivers almost nothing: it does not say whether this replaces existing fills or appends a new one, whether the change is reversible, what permissions or node types are required, or what is returned. For a mutation tool with zero annotation coverage this is a substantial gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no wasted words, but it is arguably undersized for a four-parameter destructive-style mutation, leaving no room for the context an agent needs. Conciseness is achieved at the cost of substance.

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?

Given a mutation tool with no annotations, no output schema, and four parameters including a nested stops array, the description should at minimum state replacement semantics and node prerequisites. Neither is present, so the definition is not complete enough to invoke confidently without experimentation.

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 100%, with each parameter (nodeId, gradientType enum, stops with color components, angle) documented in the schema itself. The description adds no extra meaning such as how angle interacts with gradientType or how stops order matters, so the baseline 3 applies.

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 ("Set") and resource ("a gradient fill") plus the target ("a node"), so the agent knows exactly what operation this performs. It does not distinguish itself from the obvious sibling set_fill_color or explain how a gradient fill differs in effect from a solid fill, which keeps it 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 guidance on when to use this instead of set_fill_color or other paint-related siblings, and no stated preconditions (e.g., node must support fills). The agent must infer usage entirely from the tool name and schema.

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