Skip to main content
Glama
FigJam MCP Server

FigJam MCP Server

batch_create

Create multiple FigJam elements in one call to build entire diagrams at once. Pass an array of shapes, stickies, text, sections, and connectors, using refId to wire connections within the same batch.

Instructions

Create multiple elements in a single call — ideal for building entire diagrams at once. Accepts an array of element specs. Use refId on elements and reference them in connector startElementId/endElementId to wire up connections within the same batch. Elements are created in order (create sections first, then shapes, then connectors). Returns all created element IDs mapped to their refIds.

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": {
      "elements": "<elements>"
    },
    "name": "batch_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementsYesArray of elements to create. Order: sections first, then shapes/stickies/text, then connectors

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full load, and it discloses real behavior: elements are created in array order, sections before shapes before connectors, refIds wire connectors to same-batch elements, and the response maps created IDs to refIds. The notable gap is atomicity — it does not say whether a failure mid-batch rolls back or leaves partial elements, which matters for a bulk mutation.

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?

Five short sentences with zero filler; purpose is front-loaded, then the refId wiring trick, then the ordering rule, then the return format. Each sentence supplies information an agent needs to construct a correct call.

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?

With no output schema and no annotations, the description correctly compensates by describing the return value (IDs mapped to refIds) and the ordering contract. The only material omission for a bulk write tool is failure/rollback semantics and any batch-size limits.

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 description coverage is 100%, so the baseline is 3. The description does add cross-parameter meaning the schema only hints at — the refId-to-startElementId/endElementId relationship and the required ordering of the elements array — which is genuine value beyond the per-field descriptions.

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 ('Create multiple elements in a single call') and frames the use case ('building entire diagrams at once'), which implicitly separates it from the single-element create_* siblings. It never names an alternative tool outright, so the differentiation is achieved through the word 'multiple' rather than explicit routing.

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

Usage Guidelines4/5

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

Gives a clear positive context ('ideal for building entire diagrams at once') plus procedural guidance on what to include and in what order. It stops short of saying when NOT to use it (e.g., for a single element, prefer create_shape/create_connector), so an agent must infer the boundary.

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