Skip to main content
Glama

create_diagram

Generate any diagram type—flowchart, sequence, mind map, ER, class, and more—from structured data. Specify diagram type and data to create a hand-drawn Excalidraw diagram file.

Instructions

Create any type of diagram with a single unified tool.

This is a convenience tool that routes to the specific diagram tool based on the diagram_type parameter. Use list_diagram_types to see all available types.

Args: diagram_type: Type of diagram (flowchart, sequence, mindmap, er, class, state, timeline, pie, kanban, network, quadrant, journey, wireframe, org, swot, architecture) data: Diagram-specific data (varies by type) title: Optional diagram title output_path: Optional output file path theme: Color theme - "light" or "dark"

Returns: Path to generated file or error message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
themeNolight
titleNo
output_pathNo
diagram_typeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It reveals that it dispatches to a type-specific diagram tool and states it returns a file path or error message. However, it does not explain side effects like whether files are always written to disk, how output_path interacts with the current workspace, or what error conditions may occur.

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?

The description is well-structured with a purpose sentence, a short routing explanation, an Args list, and a Returns line. It is efficient and front-loaded. The only minor redundancy is that 'any type of diagram' is followed by an explicit type list, but that list is practically useful.

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 tool with a nested free-form data object and no per-type schemas, the description gives a reasonable high-level overview and points to list_diagram_types, but it does not explicitly instruct the agent to use that tool to learn data structures. The output schema covers return shape, but the per-type data requirements remain a notable gap.

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 0%, so the description must compensate. It usefully enumerates the diagram_type values and explains theme, title, and output_path. The required 'data' parameter, however, is only described as 'Diagram-specific data (varies by type)', which is too vague to guide an agent in constructing valid input without further lookup.

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?

The description opens with a clear verb and resource: 'Create any type of diagram with a single unified tool.' It goes further by explaining that it routes to specific diagram tools via the diagram_type parameter, which distinguishes it from the many type-specific siblings like create_flowchart or create_sequence_diagram.

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?

The description establishes clear context for when to use this tool: it is a convenience router that handles many diagram types from one entry point, and it points to list_diagram_types for available types. It does not explicitly state when to prefer a specific sibling tool, but the routing explanation makes the general-purpose use case clear.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maaker-ai/excalidraw-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server