Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

set_gradient_fill

Replace a Figma node’s fills with a linear, radial, angular, or diamond gradient by specifying the node ID, gradient type, angle, and color stops.

Instructions

Replace a node's fills with a linear, radial, angular or diamond gradient

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
angleNoDegrees: 0 runs left to right, 90 (default) top to bottom
stopsYesColour stops from 0 to 1
nodeIdYesThe node's ID
gradientTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/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. It does disclose that existing fills are replaced, but it omits permissions, reversibility, effects on related properties, and response behavior for a mutation tool.

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 definition is a single front-loaded sentence with no redundant wording. It communicates the core operation and the supported gradient categories efficiently.

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?

The description is adequate for identifying and invoking the tool because the schema covers required parameters and gradient types. However, for a mutation tool with no annotations and no output schema, it leaves behavioral details such as permissions and return results unspecified.

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%, so the schema already documents most parameters including angle direction and stop structure. The description adds little beyond naming the gradient types, which are also represented in the gradientType enum, so the baseline of 3 is appropriate.

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 states a specific verb and resource: replace a node's fills with a gradient. It explicitly distinguishes gradient fills from sibling fill tools such as set_fill_color and set_image_fill, and it names the supported gradient types.

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 purpose implies when to use this tool, but the description gives no explicit when-to-use guidance, no exclusions, and no comparison to alternative fill tools. The intended use is inferable from the gradient-specific wording.

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