Skip to main content
Glama
neozhehan

Figma Edit MCP

by neozhehan

Update Reactions

reaction_update
Idempotent

Replace a node's prototype reactions with a new reactions array. Read current reactions via reaction_list first, then pass node ID, exact name, and the full array to update.

Instructions

Replace a node's prototype reactions with a full new reactions array (read first via reaction_list).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesThe ID of the node to update reactions for
nodeNameYesThe node's current exact name, passed back verbatim from `node_info`.
reactionsYesThe full array of Reaction objects to set

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
successNoWhether the reactions were updated successfully

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed5 schema fields changedv2.3.3
    • changedInput schema / definitions / __schema0 / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "type": {
      -        "enum": [
      -          "BACK",
      -          "CLOSE"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "openInNewTab": {
      -        "type": "boolean"
      -      },
      -      "type": {
      -        "const": "URL",
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "amountToSkip": {
      -        "type": "number"
      -      },
      -      "destinationId": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "mediaAction": {
      -        "type": "string"
      -      },
      -      "newTimestamp": {
      -        "type": "number"
      -      },
      -      "type": {
      -        "const": "UPDATE_MEDIA_RUNTIME",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "mediaAction"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "type": {
      -        "const": "SET_VARIABLE",
      -        "type": "string"
      -      },
      -      "variableId": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "variableValue": {
      -        "properties": {
      -          "resolvedType": {
      -            "type": "string"
      -          },
      -          "type": {
      -            "type": "string"
      -          },
      -          "value": {}
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "variableId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "type": {
      -        "const": "SET_VARIABLE_MODE",
      -        "type": "string"
      -      },
      -      "variableCollectionId": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "variableModeId": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "variableCollectionId",
      -      "variableModeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "conditionalBlocks": {
      -        "items": {
      -          "properties": {
      -            "actions": {
      -              "items": {
      -                "$ref": "#/definitions/__schema0"
      -              },
      -              "type": "array"
      -            },
      -            "condition": {
      -              "properties": {
      -                "resolvedType": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "type": "string"
      -                },
      -                "value": {}
      -              },
      -              "type": "object"
      -            }
      -          },
      -          "required": [
      -            "actions"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "type": {
      -        "const": "CONDITIONAL",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "conditionalBlocks"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "destinationId": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "navigation": {
      -        "type": "string"
      -      },
      -      "overlayRelativePosition": {},
      -      "preserveScrollPosition": {
      -        "type": "boolean"
      -      },
      -      "resetInteractiveComponents": {
      -        "type": "boolean"
      -      },
      -      "resetScrollPosition": {
      -        "type": "boolean"
      -      },
      -      "resetVideoPosition": {
      -        "type": "boolean"
      -      },
      -      "transition": {
      -        "anyOf": [
      -          {},
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "type": {
      -        "const": "NODE",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "destinationId",
      -      "navigation"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "enum": [
      +          "BACK",
      +          "CLOSE"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "openInNewTab": {
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "const": "URL",
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amountToSkip": {
      +        "type": "number"
      +      },
      +      "destinationId": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "mediaAction": {
      +        "type": "string"
      +      },
      +      "newTimestamp": {
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "UPDATE_MEDIA_RUNTIME",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "mediaAction"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "SET_VARIABLE",
      +        "type": "string"
      +      },
      +      "variableId": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "variableValue": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "resolvedType": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "type": "string"
      +          },
      +          "value": {}
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "variableId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "SET_VARIABLE_MODE",
      +        "type": "string"
      +      },
      +      "variableCollectionId": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "variableModeId": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "variableCollectionId",
      +      "variableModeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "conditionalBlocks": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "actions": {
      +              "items": {
      +                "$ref": "#/definitions/__schema0"
      +              },
      +              "type": "array"
      +            },
      +            "condition": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "resolvedType": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "type": "string"
      +                },
      +                "value": {}
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "actions"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "type": {
      +        "const": "CONDITIONAL",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "conditionalBlocks"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "destinationId": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "navigation": {
      +        "type": "string"
      +      },
      +      "overlayRelativePosition": {},
      +      "preserveScrollPosition": {
      +        "type": "boolean"
      +      },
      +      "resetInteractiveComponents": {
      +        "type": "boolean"
      +      },
      +      "resetScrollPosition": {
      +        "type": "boolean"
      +      },
      +      "resetVideoPosition": {
      +        "type": "boolean"
      +      },
      +      "transition": {
      +        "anyOf": [
      +          {},
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "type": {
      +        "const": "NODE",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "destinationId",
      +      "navigation"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / nodeName / description
      Previous value: -"Name of the node to update reactions for (for verification)"New value: +"The node's current exact name, passed back verbatim from `node_info`."
    • addedInput schema / properties / reactions / items / additionalProperties
      Added value: +false
    • changedInput schema / properties / reactions / items / properties / trigger / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "delay": {
      -        "description": "Delay before trigger fires",
      -        "type": "number"
      -      },
      -      "deprecatedVersion": {
      -        "description": "Whether the trigger is deprecated",
      -        "type": "boolean"
      -      },
      -      "device": {
      -        "description": "Device setting",
      -        "type": "string"
      -      },
      -      "keyCodes": {
      -        "description": "Key codes for key trigger",
      -        "items": {
      -          "type": "number"
      -        },
      -        "type": "array"
      -      },
      -      "mediaHitTime": {
      -        "description": "Media hit time",
      -        "type": "number"
      -      },
      -      "timeout": {
      -        "description": "Timeout for delay triggers",
      -        "type": "number"
      -      },
      -      "type": {
      -        "description": "Trigger type (e.g. ON_CLICK, ON_HOVER)",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "delay": {
      +        "description": "Delay before trigger fires",
      +        "type": "number"
      +      },
      +      "deprecatedVersion": {
      +        "description": "Whether the trigger is deprecated",
      +        "type": "boolean"
      +      },
      +      "device": {
      +        "description": "Device setting",
      +        "type": "string"
      +      },
      +      "keyCodes": {
      +        "description": "Key codes for key trigger",
      +        "items": {
      +          "type": "number"
      +        },
      +        "type": "array"
      +      },
      +      "mediaHitTime": {
      +        "description": "Media hit time",
      +        "type": "number"
      +      },
      +      "timeout": {
      +        "description": "Timeout for delay triggers",
      +        "type": "number"
      +      },
      +      "type": {
      +        "description": "Trigger type (e.g. ON_CLICK, ON_HOVER)",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "code": {
      +      "description": "Stable machine-readable failure code (see the error playbook)",
      +      "type": "string"
      +    },
      +    "details": {
      +      "description": "Optional structured context (e.g. partialMutation, before-values)"
      +    },
      +    "message": {
      +      "description": "Human/agent-readable message embedding its own recovery",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv2.3.2
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +{}
  3. Changed3 schema fields changedv2.3.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / nodeName
      Added value: +{
      +  "description": "Name of the node to update reactions for (for verification)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "nodeId",
      -  "reactions"
      -]New value: +[
      +  "nodeId",
      +  "nodeName",
      +  "reactions"
      +]
  4. Addedv2.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations provide idempotentHint and openWorldHint, but the description adds the critical semantic of full replacement ('Replace ... with a full new reactions array'), clarifying that this is an overwrite, not an incremental edit. This goes beyond what annotations already convey, offering useful behavioral context without contradiction.

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?

The description is a single, well-structured sentence that front-loads the core action ('Replace...') and immediately follows with the crucial usage caveat ('read first via reaction_list'). Every word earns its place, with zero redundancy.

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?

Given the tool's complexity and rich schema (extensive reactions definition) plus presence of an output schema, the description effectively covers the key operational requirements: the full-replacement behavior and the read-first prerequisite. It could mention error cases or node existence, but for an agent with access to schema and annotations, it is sufficiently complete.

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 all parameters (nodeId, nodeName, reactions) are fully described in the input schema. The description doesn't add parameter-specific guidance beyond what the schema already provides, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Replace') and resource ('node's prototype reactions'), clearly stating the tool's action. It also distinguishes itself from the sibling 'reaction_list' read tool by implying that this is the write counterpart, making the purpose unambiguous.

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?

The description provides a clear prerequisite: 'read first via reaction_list,' which guides the agent to fetch existing data before writing. It also emphasizes that the operation expects a 'full new reactions array,' implying a read-modify-write workflow. However, it does not explicitly exclude alternatives or explain when not to use this tool, falling short of a perfect score.

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

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/neozhehan/figma-edit-mcp'

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