Skip to main content
Glama
Talk to Figma MCP

Talk to Figma MCP

by thanatusdev

set_locked

Lock or unlock a Figma node to prevent accidental edits or allow changes. Specify the node ID and whether it should be locked.

Instructions

Lock or unlock a node to prevent/allow accidental edits

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": {
      "nodeId": "<nodeId>",
      "locked": "<locked>"
    },
    "name": "set_locked"
  }
}

Input Schema

NameRequiredDescriptionDefault
lockedYesWhether the node should be locked
nodeIdYesThe ID of the node to lock/unlock

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden, and it only says the operation prevents accidental edits. It does not explain whether locking a parent node affects its children, whether the lock is reversible without a separate call, whether it persists across sessions, or what the call returns on success/failure.

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?

A single eleven-word sentence that front-loads the action and states the effect. There is no filler. It stops short of 5 only because the compressed phrasing doesn't leave room for any structuring of behavior (parent/child effects, reversibility) that would help an agent.

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?

For a two-parameter boolean toggle with no output schema, the description is minimally sufficient to invoke it. However, no annotations exist to cover the mutation's safety profile, so behavior like propagation to child nodes and reversibility should have been stated. The definition is adequate but leaves real gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and both parameters carry their own descriptions, so the description only needs to avoid contradicting them, which it does. The 'lock or unlock' phrasing corroborates that the `locked` boolean is bidirectional rather than a single-purpose flag, adding slight meaning. A baseline score is appropriate when the schema already does the heavy lifting.

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 pair (lock/unlock) on a specific resource (node), plus the intent behind it ('prevent/allow accidental edits'). An agent can tell exactly what operation is performed. It stops short of 5 because it does not distinguish itself from the closest sibling, set_visibility, which is also a boolean toggle on a node.

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 context is only implied by the phrase 'prevent/allow accidental edits', which hints at when you'd lock but never states when not to use this tool or which alternative to pick (e.g. set_visibility for hiding rather than protecting). No prerequisites or preconditions are mentioned.

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