Skip to main content
Glama

set_variable

Create, update, or delete Figma variables (design tokens) in bulk. Manage variable collections, types, modes, and descriptions efficiently through structured input formats for consistent design token handling.

Instructions

Creates, updates, or deletes one or more Figma Variables (design tokens).

Returns:

  • content: Array of objects. Each object contains a type: "text" and a text field with the result or summary.

Input Schema

NameRequiredDescriptionDefault
idsNoOne or more variable IDs to delete. Can be a single string or an array of strings.
variablesNoOne or more variable definitions to create or update. Can be a single object or an array.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "ids": { "anyOf": [ { "minLength": 1, "type": "string" }, { "items": { "minLength": 1, "type": "string" }, "maxItems": 50, "minItems": 1, "type": "array" } ], "description": "One or more variable IDs to delete. Can be a single string or an array of strings." }, "variables": { "anyOf": [ { "additionalProperties": false, "properties": { "collection": { "type": "string" }, "description": { "type": "string" }, "mode": { "type": "string" }, "name": { "maxLength": 100, "minLength": 1, "type": "string" }, "type": { "enum": [ "COLOR", "NUMBER", "STRING", "BOOLEAN" ], "type": "string" }, "value": {} }, "required": [ "name", "type" ], "type": "object" }, { "additionalProperties": false, "properties": { "collection": { "$ref": "#/properties/variables/anyOf/0/properties/collection" }, "description": { "$ref": "#/properties/variables/anyOf/0/properties/description" }, "id": { "minLength": 1, "type": "string" }, "mode": { "$ref": "#/properties/variables/anyOf/0/properties/mode" }, "name": { "$ref": "#/properties/variables/anyOf/0/properties/name" }, "type": { "$ref": "#/properties/variables/anyOf/0/properties/type" }, "value": { "$ref": "#/properties/variables/anyOf/0/properties/value" } }, "required": [ "name", "type", "id" ], "type": "object" }, { "items": { "$ref": "#/properties/variables/anyOf/0" }, "maxItems": 50, "minItems": 1, "type": "array" }, { "items": { "additionalProperties": false, "properties": { "collection": { "$ref": "#/properties/variables/anyOf/0/properties/collection" }, "description": { "$ref": "#/properties/variables/anyOf/0/properties/description" }, "id": { "minLength": 1, "type": "string" }, "mode": { "$ref": "#/properties/variables/anyOf/0/properties/mode" }, "name": { "$ref": "#/properties/variables/anyOf/0/properties/name" }, "type": { "$ref": "#/properties/variables/anyOf/0/properties/type" }, "value": { "$ref": "#/properties/variables/anyOf/0/properties/value" } }, "required": [ "name", "type", "id" ], "type": "object" }, "maxItems": 50, "minItems": 1, "type": "array" } ], "description": "One or more variable definitions to create or update. Can be a single object or an array." } }, "type": "object" }

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/amalinakurniasari/conduit'

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