Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_delete_variable

Deletes a Figma variable by ID; use figma_get_variables first to find the ID, and note the action cannot be undone except via Figma undo.

Instructions

Delete a Figma variable. WARNING: This is a destructive operation that cannot be undone (except with Figma's undo). Use figma_get_variables first to get variable IDs. 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>"
    },
    "name": "figma_delete_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
variableIdYesThe variable ID to delete (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

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does it well: it flags the operation as destructive, irreversible, and notes the only recovery path (Figma undo), plus the runtime dependency on the Canvas Bridge plugin. It omits what happens to existing node bindings or mode values referencing the deleted variable, which matters for a destructive op.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the purpose and the destructive warning before prerequisites. Nothing is padded and each sentence adds a distinct operational fact.

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 one-parameter destructive tool with no annotations and no output schema, the description covers purpose, risk, recovery, ID provenance, and the plugin dependency. The remaining gap is the downstream effect on anything bound to the deleted variable.

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% and the single parameter already documents its format and source, so the schema does the heavy lifting. The description's only added signal is reiterating where to obtain the ID (figma_get_variables), which is duplicate of the schema text.

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?

"Delete a Figma variable" gives a specific verb and a precisely scoped resource, which implicitly separates it from siblings like figma_delete_variable_collection or figma_rename_variable. It never names an alternative outright, so the differentiation is inferred from the resource noun rather than stated.

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 states a clear prerequisite workflow: call figma_get_variables first to obtain variable IDs, and ensure the Canvas Bridge plugin is running. It does not address when-not to delete (e.g., when a variable is still bound to nodes) or name alternative tools for that case.

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