Skip to main content
Glama
FigJam MCP Server

FigJam MCP Server

validate_layout

Checks a FigJam diagram for text truncation, overlapping elements, section bleed, and tight connectors, then supports fixes and re-checks until no issues remain.

Instructions

MANDATORY — call after creating a diagram. Checks for: text truncation, overlapping elements, section bleed (elements outside section bounds), and tight connectors (< 80px gap between connected shapes). Fix each issue with update_element, then re-validate until zero issues remain.

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": "validate_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the four specific checks, the concrete threshold for tight connectors (< 80px gap), and the expected fix-and-revalidate loop. It stops short of stating that the tool is non-mutating and does not describe the shape of the returned issue list, which is the main remaining gap.

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?

The imperative trigger is front-loaded in a single capitalised clause, followed by the checklist and the remediation loop. Every sentence carries actionable information with no filler.

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 zero-parameter validation tool with no output schema, the description covers the trigger, the checks, and the follow-up workflow well. It could be more complete by indicating what the response contains (e.g., a list of issues with element references), since no output schema documents that.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline for a parameterless tool applies. The description correctly implies the tool operates on the current board context without needing arguments.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (validate) and resource (layout) and enumerates exactly what is checked: text truncation, overlapping elements, section bleed, and tight connectors. This is clearly distinguishable from siblings like update_element or align_elements, which mutate rather than inspect.

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

Usage Guidelines5/5

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

Explicitly says when to call it ("MANDATORY — call after creating a diagram"), what to do with the results (fix each issue with update_element), and the termination condition (re-validate until zero issues remain). It names the sibling to use for remediation, leaving nothing to inference.

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