Skip to main content
Glama
xlzuvekas

Figma Copilot

by xlzuvekas

set_range_fills

Change the color of a specific text range within a Figma text node by providing node ID, start and end indices, and RGB color values.

Instructions

Set the text color for a specific text range

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYesEnd index of the range (exclusive)
colorYesText color
startYesStart index of the range (inclusive)
nodeIdYesThe ID of the text node
Behavior1/5

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

No annotations are provided, so the description must bear all behavioral details. It only states the action but does not disclose side effects (e.g., overwrites existing color, no undo, whether the node type is validated), permissions needed, or behavior on invalid input. This is insufficient for an AI agent.

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 a single sentence, very concise and front-loaded. However, it sacrifices necessary detail for brevity. While efficient, it lacks context that could be added without becoming verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description should explain more about the operation (e.g., return value, validation, error handling). It only describes the action, leaving the agent to infer behavior. For a mutation tool with 4 required params, this is incomplete.

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?

The input schema has 100% coverage with descriptions for all parameters. The description adds no new semantic information beyond what the schema provides, so it does not enhance understanding. Baseline score of 3 is appropriate.

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 clearly states the verb ('set') and resource ('text color for a specific text range'). It differentiates from sibling tools like set_range_font, set_range_font_size, etc., by specifying 'color' rather than font or decoration. However, the term 'fills' might cause confusion with set_fill_color (which sets shape fill), but the description clarifies it's text color.

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 (e.g., set_fill_color for shapes, set_range_font for font). It does not mention prerequisites, such as the node must be a text node, or when not to use it.

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

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/xlzuvekas/figma-copilot'

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