Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_measure_spacing

figma_measure_spacing

Measure bounds, gaps, overlaps, and alignment deltas for selected or specified Figma nodes to inspect spacing and layout relationships.

Instructions

Measure bounds, gaps, overlaps, and alignment deltas for selected or provided 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_measure_spacing"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; "Measure" strongly implies a read-only, non-destructive operation and the phrase "selected or provided nodes" discloses that zero-argument invocation acts on the current selection, which is real behavioral detail absent from the schema. It says nothing about what the measurements look like in the response, and there is no output schema to cover that.

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 and the key outputs listed first. It is tight, though arguably too terse given the unexplained 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?

No annotations, no output schema, and four parameters at half coverage. For a measurement tool the agent still cannot tell what the returned data looks like or what screenKey selects, so the definition is incomplete relative to its 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 50%: nodeId/nodeIds are documented in the schema but screenKey and includeOverlaps are bare. The word "overlaps" in the description hints at includeOverlaps' purpose, but screenKey is unexplained and the precedence between nodeId and nodeIds is never addressed, so the description does not compensate 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?

States a specific verb ("Measure") and enumerates concrete outputs (bounds, gaps, overlaps, alignment deltas) scoped to nodes. This distinguishes it in spirit from mutating siblings like figma_align_distribute, but it never names or explicitly contrasts with any alternative.

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?

"for selected or provided nodes" implies two invocation modes (rely on the current selection, or pass IDs), which is useful context. There is no statement of when to prefer this over figma_align_distribute or other geometry-related siblings, and no prerequisites or exclusions.

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