Skip to main content
Glama
FigJam MCP Server

FigJam MCP Server

align_elements

Aligns multiple elements along a chosen axis and automatically resizes parent sections to fit their children after alignment.

Instructions

Align multiple elements along an axis. Also auto-resizes any parent sections to fit their children after alignment.

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>",
      "alignment": "<alignment>"
    },
    "name": "align_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
alignmentYesAlignment axis: left/center/right for horizontal, top/middle/bottom for vertical
elementIdsYesIDs of elements to align

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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, and it does disclose one meaningful side effect: parent sections are auto-resized to fit their children after alignment. However, it says nothing about required permissions, error behavior for invalid IDs or mixed-parent selections, or what the call returns.

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?

Two short sentences with the core action front-loaded and the side effect immediately following. No filler, though the side effect could be phrased more precisely (e.g., that it applies only to parent sections containing aligned elements).

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 mutation tool with no annotations and no output schema, the description covers purpose and a key side effect. It still leaves open whether the elements must be siblings, whether mixed-axis alignment is allowed, and what the response contains.

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%, with the alignment enum already documenting which values apply to horizontal vs vertical axes. The description adds no syntax, ordering, or mixed-axis detail beyond the schema, so the baseline of 3 applies.

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 and resource: 'Align multiple elements along an axis', which tells an agent exactly what operation is performed. It does not distinguish itself from plausible siblings like distribute_elements, so an agent must infer the difference from the name alone.

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 explicit when-to-use guidance, no mention of alternatives such as distribute_elements or update_element, and no prerequisites (e.g., whether elements must share a parent). The only cue is the implied 'multiple elements', which is usage-adjacent but not guidance.

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