Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_set_constraints

figma_set_constraints

Sets horizontal and vertical constraints on one or more Figma nodes to control how they resize within frames and adapt to layout changes.

Instructions

Set horizontal and vertical constraints on one or more nodes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "figma_set_constraints"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdNoFigma node ID. Colon or URL hyphen format accepted.
nodeIdsNoFigma node IDs. Colon or URL hyphen format accepted.
verticalNo
screenKeyNo
horizontalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: it does not say this is a mutation, whether it overwrites existing constraints, whether it requires the node to be a frame child, or what happens on invalid values. The only behavioral signal is the 'one or more nodes' scope. For an unannotated write tool this is a substantial gap.

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 front-loaded sentence with no filler, which is structurally sound. The brevity is efficient but slides into under-specification given the undocumented parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five parameters, 40% schema coverage, no annotations, and no output schema, the definition leaves an agent unable to call it confidently: allowed constraint values, single-vs-batch parameter choice, and the role of screenKey are all unresolved. It is not adequate for the tool's complexity.

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

Parameters2/5

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

Schema coverage is only 40% and five parameters exist, so the description must compensate and does not. Critically, 'vertical' and 'horizontal' have no enum and no description, so an agent cannot tell whether the accepted values are MIN/CENTER/MAX/STRETCH/SCALE or something else; the description merely repeats the two field names. It also never clarifies nodeId vs nodeIds precedence (both optional, zero required) or what screenKey means.

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?

The description states a specific verb ('Set'), the exact property being modified ('horizontal and vertical constraints'), and the target ('one or more nodes'), which cleanly separates it from sibling setters like figma_set_auto_layout or figma_set_corner_radius. It stops short of naming or contrasting any alternative, so it lands at clear-but-undifferentiated rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites (e.g. does this apply to children of an auto-layout frame, and does auto-layout override constraints?), and no mention of alternatives. The phrase 'one or more nodes' hints at batch usage but does not say when to prefer batch over single-node calls.

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