Skip to main content
Glama
Talk to Figma MCP

Talk to Figma MCP

by thanatusdev

get_all_colors

Extract every unique color from a Figma node and its child elements to analyze design palettes and ensure color consistency.

Instructions

Extract all unique colors used in a node and its children (for design analysis)

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

Input Schema

NameRequiredDescriptionDefault
nodeIdYesThe ID of the node to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description does disclose two real behavioral traits: it traverses into children (recursive scope) and it deduplicates ('all unique'). It does not say what form colors are returned in, how missing or non-visual nodes are handled, or whether depth is bounded, which leaves meaningful gaps for an unannotated tool.

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?

One sentence, front-loaded with the action and scope, with no filler. The trailing parenthetical is slightly redundant but briefly signals intent, so only a minor deduction.

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 simple single-parameter read tool with no output schema, the definition covers what is scanned but not what comes back (hex strings, style objects, per-node attribution), which an agent would need to plan downstream use. Adequate but not complete.

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 coverage is 100% for the single nodeId parameter, so the schema already explains the ID. The description only adds that the analysis extends to children, which is useful scope context but not parameter-level syntax or format detail; 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 and resource — 'Extract all unique colors used in a node and its children' — and the scope (node plus descendants, deduplicated) is explicit. It does not name a sibling it competes with, but the resource 'colors' separates it cleanly from neighbors like get_all_fonts and get_styles.

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 parenthetical 'for design analysis' implies the use context but gives no when-to-use versus when-not guidance and points to no alternative tool. An agent can infer that this is for color auditing, but nothing tells it when another tool (e.g. get_styles) would be the better choice.

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