Skip to main content
Glama
FigJam MCP Server

FigJam MCP Server

distribute_elements

Spaces selected FigJam elements evenly in a horizontal or vertical direction, enforcing a minimum gap and resizing parent sections to fit their children.

Instructions

Distribute elements evenly with equal spacing. Enforces a minimum gap (default 60px) so elements and connectors between them are never too tight. Also auto-resizes any parent sections to fit their children after distribution.

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": {
      "elementIds": "<elementIds>",
      "direction": "<direction>"
    },
    "name": "distribute_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
spacingNoMinimum gap in pixels between elements (default: 60). Increase for diagrams with connectors that need breathing room.
directionYesDistribution direction
elementIdsYesIDs of elements to distribute (at least 3 for meaningful distribution)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose two genuinely non-obvious behaviors — a minimum-gap floor (default 60px) and automatic resizing of parent sections after distribution — but says nothing about whether element positions are irreversibly mutated, what is returned, or failure conditions.

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?

Three short sentences, front-loaded with the core action and followed by the two behavioral caveats. Each sentence contributes, though the middle sentence's connector rationale slightly duplicates the spacing parameter description.

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 3-parameter mutation tool with no annotations and no output schema, the definition covers the essential surprises: the enforced gap and the parent-section resize side effect. Missing only return-value and reversibility details, which are minor at this complexity.

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 100%, so the baseline is 3; the description restates the 60px default for spacing without adding syntax or constraints beyond what the schema already documents. It adds no meaning for direction or elementIds that the schema does not already carry.

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?

"Distribute elements evenly with equal spacing" gives a specific verb and resource that is clearly distinct from align_elements or the create_* siblings. It stops short of naming or contrasting an alternative, so sibling differentiation is implied rather than stated.

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?

The description implies the use case (spreading elements with equal gaps, especially when connectors need breathing room) but never states when to choose this over align_elements or validate_layout, nor any preconditions such as a minimum element count — that hint lives only in the schema.

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