Skip to main content
Glama

create_variable

Destructive

Create color, number, text, or boolean variables in Figma collections to organize design tokens and maintain consistency across design systems.

Instructions

Create a new variable in a collection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionIdYesVariable collection ID
nameYesVariable name
typeYesVariable type: COLOR, FLOAT, STRING, or BOOLEAN
valueNoInitial value for the first mode. COLOR: hex e.g. #FF5733. FLOAT: number e.g. 16. STRING: text. BOOLEAN: true or false.
Behavior2/5

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

While not contradicting annotations, the description adds no behavioral context beyond the basic action. It fails to explain what 'destructive' entails, the side effects of creation, or the implication of idempotentHint:false (duplicate creation attempts).

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?

Extremely concise single sentence with no filler. However, given the tool's complexity and destructive nature, the brevity may be excessive rather than optimally informative.

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?

Minimum viable for the tool's complexity. The input schema is fully documented, but the description lacks guidance on the variable system ecosystem (modes, collections) and omits return value information despite having no output schema.

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?

With 100% schema description coverage, the schema carries the full burden of parameter documentation. The description adds no parameter semantics, meeting the baseline for high schema coverage.

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?

States specific verb (Create) and resource (variable) with scope ('in a collection'), distinguishing it from sibling create_variable_collection. However, it omits the domain context (design tokens) that would make it fully clear.

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?

Provides no guidance on when to use this versus alternatives like set_variable_value (updating existing) or create_variable_collection (prerequisite). No mention of prerequisites or exclusions.

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/vkhanhqui/figma-mcp-go'

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