Skip to main content
Glama

create_gradient_style

Idempotent

Generate gradient style variables in Figma with specified properties such as type, color stops, and opacity. Use this to define and manage custom gradient designs efficiently.

Instructions

Creates one or more gradient style variables in Figma.

Returns:

  • content: Array of objects. Each object contains a type: "text" and a text field with the created gradient(s) ID(s) or a summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gradientsYesOne or more gradient style definitions to create. Can be a single object or an array.
Behavior4/5

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

Annotations cover key behavioral traits (readOnlyHint=false, destructiveHint=false, idempotentHint=true), but the description adds value by specifying the batch capability ('one or more') and hinting at the return format. However, it doesn't fully explain edge cases like name uniqueness constraints or how duplicates are handled, which annotations partially address with warnings.

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?

The description is front-loaded with the core purpose in the first sentence, followed by return value details. It avoids redundancy and wastes no words, though the return format explanation could be slightly more integrated. Overall, it's efficient and well-structured.

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?

Given the tool's moderate complexity (batch creation with detailed parameters), annotations provide extensive behavioral context (idempotency, warnings), and the schema fully documents inputs. The description covers purpose and output, but lacks usage guidelines. With no output schema, the return format description is helpful but could be more detailed.

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%, so the schema fully documents the 'gradients' parameter and its nested properties. The description only mentions 'one or more gradient style variables', which adds minimal semantic context beyond what the schema already provides. This meets the baseline for high schema coverage.

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 verb ('Creates') and resource ('one or more gradient style variables in Figma'), making the purpose specific and unambiguous. It distinguishes itself from siblings like 'set_gradient' by focusing on creating reusable style variables rather than applying gradients directly to nodes.

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?

The description provides no guidance on when to use this tool versus alternatives like 'set_gradient' or other style creation tools. It lacks context about prerequisites (e.g., needing a Figma document open) or typical use cases, leaving the agent to infer usage from the tool name and parameters alone.

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

Related 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/amalinakurniasari/conduit'

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