Skip to main content
Glama

create-diagram

Create a new Lucid diagram from Standard Import JSON by defining pages, shapes, and lines, then get an edit URL for flowcharts, org charts, UML, BPMN, and cloud architecture.

Instructions

Create a new Lucid diagram from Standard Import JSON. Author JSON describing pages, shapes, and lines (no Mermaid); the document is created in your Lucid account and the edit URL is returned. Use for flowcharts, org charts, UML, BPMN, and cloud architecture diagrams.

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": {
      "title": "<title>",
      "standardImportJson": "<standardImportJson>"
    },
    "name": "create-diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesTitle for the new Lucid document
parentNoOptional Lucid folder ID to create the document inside
productNoLucid product to create the document in (default "lucidchart")
standardImportJsonYesLucid Standard Import JSON (the contents of document.json). Author it yourself; no Mermaid. Top-level shape: { "version": 1, "pages": [ { "id": "page1", "title": "Page 1", "shapes": [ { "id": "s1", "type": "terminator", "boundingBox": {"x":0,"y":0,"w":160,"h":60}, "text": "Start" }, { "id": "s2", "type": "process", "boundingBox": {"x":0,"y":120,"w":160,"h":60}, "text": "Do work" }, { "id": "s3", "type": "decision", "boundingBox": {"x":0,"y":240,"w":160,"h":80}, "text": "OK?" } ], "lines": [ { "id": "l1", "lineType": "elbow", "endpoint1": {"type":"shapeEndpoint","style":"none","shapeId":"s1"}, "endpoint2": {"type":"shapeEndpoint","style":"arrow","shapeId":"s2"} } ] } ] } Rules: - Every shape/line/page needs a unique id. Shapes need a boundingBox {x,y,w,h}. Numbers must be numeric, colors hex (e.g. "#FF0000"), no emoji in text. - Connect shapes with lines via shapeEndpoint (shapeId). For a directional arrow A->B set endpoint1.style "none" and endpoint2.style "arrow". lineType: "straight" | "elbow" | "curved". - Common shape types: rectangle, text, process, decision, terminator, document, database, delay, data, predefinedProcess; circle, diamond, hexagon; umlClass; bpmn* ; namedShape (AWS/Azure/GCP icons via className). Containers: rectangleContainer, roundedRectangleContainer, swimLanes, bpmnPool. - Layout: coordinates are a starting point. For flowcharts you do not need perfect positions; just give a rough top-to-bottom or left-to-right spread and Lucid's assisted layout (on containers via "assistedLayout": true) neatens it. Connections, not coordinates, define logical order. - Size limit: document.json max 2MB. Keep JSON concise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does disclose the key behavioral traits: a persistent document is created in the user's Lucid account, the edit URL is the return value, Mermaid is rejected, and the 2MB payload cap. It does not mention permission/scopes required or failure modes, which is the remaining gap for a write operation.

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?

Three sentences, front-loaded with the action and format, then the authoring contract and return value, then use cases. Every sentence earns its place and nothing is padded.

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 create-mutation tool with no output schema, the description supplies the return value (edit URL), the input contract, and a size ceiling, which is close to sufficient. Auth requirements and what happens to the document on partial failure are unstated, a modest gap for a write tool.

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% and the schema itself embeds an extensive JSON shape and layout rules, so the baseline applies. The description's parameter-relevant content ('Author JSON describing pages, shapes, and lines (no Mermaid)') largely duplicates the schema's own field description; it adds the useful note that coordinates are flexible via assisted layout, but not enough to lift above baseline.

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+resource ('Create a new Lucid diagram') plus the exact input format ('Standard Import JSON') and explicitly excludes Mermaid. The sibling set (delete-diagram, get-document, search-documents) is clearly disjoint, so no agent confusion is possible.

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?

Lists concrete diagram categories (flowcharts, org charts, UML, BPMN, cloud architecture) that tell the agent when this tool applies, and the 'no Mermaid' note rules out a tempting wrong input. It stops short of naming alternatives or stating when NOT to use it (e.g. for reading or updating an existing document).

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