Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_rename_variable

Rename an existing Figma variable without losing its values or settings. Provide the variable ID and new name; requires the Canvas Bridge plugin.

Instructions

Rename an existing Figma variable. This updates the variable's name while preserving all its values and settings. Requires the Canvas Bridge plugin to be running.

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": {
      "variableId": "<variableId>",
      "newName": "<newName>"
    },
    "name": "figma_rename_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
newNameYesThe new name for the variable. Can include slashes for grouping (e.g., 'colors/primary/background').
variableIdYesThe variable ID to rename (e.g., 'VariableID:123:456'). Get this from figma_get_variables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does add genuinely useful context — that values and settings are preserved and that the Canvas Bridge plugin must be running — but says nothing about name-collision behavior, permission/auth requirements, reversibility, or the response, which are the main risks for a mutation 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?

Three short, front-loaded sentences with no filler. The opening sentence largely restates the tool name, which is the only wasted clause; the preservation and prerequisite details both earn their place.

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

Completeness4/5

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

For a two-parameter mutation with no output schema, the description covers the essential prerequisite and the key side-effect guarantee. Only edge-case behavior (duplicate names, error outcomes) is missing, which is minor at this complexity.

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 100%, and the schema already explains the variable ID format and the slash-grouping convention for names. The description adds no parameter meaning beyond that, so the 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?

States a specific verb ('Rename') and resource ('Figma variable'), which separates it from figma_rename_node and figma_rename_mode by resource type. It does not, however, distinguish itself from figma_update_variable, which a reader might reasonably think could also change a name.

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?

Usage is only implied: 'Rename an existing Figma variable' signals the case, and the Canvas Bridge prerequisite is stated. There is no explicit when-to-use versus figma_update_variable or figma_batch_update_variables, and no exclusion guidance.

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

Deploy Server

Other Tools