Skip to main content
Glama

create_paint_style

Create or update a named paint style in Figma from a hex color or bind it to a color variable, optionally targeting a specific file and collection.

Instructions

Create (or update by name) a paint style from a hex color or bound to a color variable.

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": {
      "name": "<name>"
    },
    "name": "create_paint_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
hexNo
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
nameYes
variableNoColor variable name/id to bind
collectionNoDisambiguate `variable` by collection name or id
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one genuine behavioral trait: the tool is an upsert that matches existing styles by name rather than a pure create. It omits behavior on the mutation side, such as what happens to an existing style's other properties, whether variable binding overrides hex, permission requirements, or what is returned.

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?

A single sentence with the primary action front-loaded and the parenthetical upsert clause placed efficiently. No filler or restated title text.

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?

For a six-parameter mutation tool with no annotations and no output schema, the description covers the input modes and the upsert behavior but leaves the agent guessing about return values, precedence when hex and variable are both given, and any side effects on existing styles.

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 only 50%, and the description compensates by clarifying the three undocumented parameters: 'name' doubles as the lookup key for updates, 'hex' is a hex color, and 'variable' must be a color variable. It does not clarify the hex/variable interaction or how 'collection' disambiguates, leaving a small gap.

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?

Names a specific verb and resource ('Create ... a paint style') and states both accepted sources (hex color or color variable), which lets an agent separate it from the create_*_style siblings by resource type. Sibling differentiation is implicit in the resource name rather than stated explicitly, so it falls 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 Guidelines3/5

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

The 'hex color or bound to a color variable' phrasing implies two alternative modes of invocation, and 'or update by name' hints at when an existing style is targeted. However, it never says which mode to prefer, what happens if both hex and variable are supplied, or when to use this versus create_text_style / create_effect_style or apply_style.

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