Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Pin layers to their parent's edges

figma_anchor_nodes

Positions existing Figma layers against parent edges and applies matching constraints, removing them from auto-layout when needed for floating buttons, bottom sheets, toasts, and badges.

Instructions

Positions existing layers against their parent's edges and sets matching constraints, taking them out of auto-layout flow if needed. For floating buttons, bottom sheets, toasts and badges, e.g. {right: 16, bottom: 16, above: "Navigation bar"}.

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": {
      "items": "<items>"
    },
    "name": "figma_anchor_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFigma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file.
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false and openWorld=true; they do not reveal that this operation may remove nodes from auto-layout flow, which the description explicitly discloses as a side effect. It also notes that constraints are set alongside positioning, giving the agent a real expectation of document mutation. What is missing is behavior on failure (e.g., node not a child of the target parent) or any indication of what is returned.

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?

Two sentences, both front-loaded with the action and its side effect before the illustrative example. The example is compact and directly clarifies a non-obvious parameter shape rather than padding the text.

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 tool with no output schema, the description covers the core action, the notable side effect on auto-layout, and a representative use case, which is enough for correct invocation. The remaining gap is the undocumented `url` scoping parameter and error/return behavior.

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 50%, and the inline example {right: 16, bottom: 16, above: "Navigation bar"} usefully shows how edge distances and the sibling reference combine in one anchor object, which is more than the schema's flat property list conveys. However, the `url` parameter gets no mention in the description and the example never demonstrates top/left/centerX or the units, so it only partially compensates for the coverage gap.

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?

"Positions existing layers against their parent's edges and sets matching constraints" gives a concrete verb and resource, and "existing layers" plus the auto-layout note separate it from creation/layout-building siblings like figma_build_layout or figma_create_node. It stops short of naming any alternative explicitly, so an agent must infer the boundary from the wording alone.

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 second sentence supplies a clear usage context (floating buttons, bottom sheets, toasts, badges) that tells the agent what kind of task this tool is for. There is no statement of when not to use it or which sibling to prefer for related tasks such as layout construction, so it lands at clear-context-without-exclusions rather than full routing guidance.

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