Skip to main content
Glama

draw_class_diagram

Generate a UML class diagram from class definitions including attributes, methods, stereotypes, and relationships, producing an editable .drawio file.

Instructions

Create a UML class diagram as a .drawio file. Accepts class elements with attributes, methods, stereotypes (interface, abstract, enum), and relationships (inheritance, association, aggregation, composition, dependency, realization). Output is a .drawio file that opens in draw.io (diagrams.net).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoClass Diagram
classesYes
relationshipsNo
Behavior3/5

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

With no annotations, the description discloses output format (.drawio file) and compatibility (opens in draw.io). However, it does not mention any behavioral traits like file creation behavior, permissions, or side effects, leaving gaps for a creation tool.

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?

Two sentences with no filler. First sentence states purpose and output. Second sentence lists capabilities. Front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (3 parameters, nested objects, no output schema, no annotations), the description is incomplete. Missing details on relationship types, stereotype definitions, attribute syntax, error handling, and file behavior (overwrite, etc.). Schema coverage is 0%, so description carries the burden but falls short.

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

Parameters2/5

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

Schema has 0% description coverage, so the description must explain parameters. It only provides a high-level list of accepted elements (classes, attributes, methods, relationships) without explaining structure, defaults, or constraints. Nested objects (e.g., methods with params, visibility) are undocumented.

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 clearly states the tool creates a UML class diagram as a .drawio file, using specific verbs and resources. It lists accepted elements (attributes, methods, stereotypes, relationships) and distinguishes it from sibling tools for other diagram types.

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

Usage Guidelines3/5

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

The description implies use for class diagram creation but does not explicitly state when to use vs alternatives (e.g., other diagram types). Context from sibling names provides differentiation, but the description itself lacks explicit usage guidance.

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

Install Server

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/rifujin123/drawio-mcp'

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