Skip to main content
Glama
Figma Vector MCP

Figma Vector MCP

by workingmodel

register_color

Saves a named color alias to the document palette, letting you reuse consistent RGB values by name.

Instructions

Save a named color alias to the document palette. All RGB values are 0–1. Use resolve_color or list_colors to retrieve.

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": {
      "alias": "<alias>",
      "r": "<r>",
      "g": "<g>",
      "b": "<b>"
    },
    "name": "register_color"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNo
bYes
gYes
rYes
aliasYesName for this color, e.g. 'brand-blue', 'amber', 'near-black'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the burden. It discloses that the alias is persisted to the document palette (a mutation) and the 0–1 value domain, but says nothing about whether an existing alias is overwritten, permission requirements, or what is returned on save.

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?

Three short sentences, front-loaded with the action and followed by the value constraint and retrieval alternatives. Nothing is redundant, though the value-range sentence repeats what the schema's min/max already encode.

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 5-parameter mutation tool with no annotations and no output schema, the description covers purpose, units, and where to read results back. It omits overwrite/idempotency behavior and return information, which matter for an agent calling it correctly.

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 only 20% (alias only), so the description must compensate. It adds 'All RGB values are 0–1,' which clarifies r/g/b units, but leaves the alpha channel 'a' (type, default 1, bounds) entirely unexplained in both schema and description.

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 uses a specific verb and resource: 'Save a named color alias to the document palette.' It clearly distinguishes registration from retrieval by naming resolve_color and list_colors as the read-side siblings.

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?

It gives explicit routing for the opposite direction ('Use resolve_color or list_colors to retrieve'), which frames register_color as the write counterpart. It stops short of saying when to register an alias versus using set_fill_color/set_stroke_color directly, so there is a gap but the context is clear.

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