Skip to main content
Glama

generate_diagram_from_image

Convert images like whiteboard photos or sketches into clean software engineering diagrams. Upload an image URL or base64 data to generate editable diagrams for flowcharts, sequence diagrams, ERDs, and system architectures.

Instructions

Convert an image (whiteboard photo, screenshot, hand-drawn sketch) into a clean diagram. Use this tool when the user provides an image URL or base64-encoded image and wants it converted to a proper software engineering diagram. Accepts public image URLs or base64 data URIs (data:image/...;base64,...). Returns a link to view and edit the generated diagram in the browser.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesEither a public image URL or a base64 data URI of the image to convert. Supported formats: JPEG, PNG, GIF, WebP. For a URL: 'https://example.com/whiteboard.png'. For a data URI: 'data:image/png;base64,iVBORw0KGgo...'
promptNoInstruction describing what to extract or how to render the diagram. Example: "Convert this whiteboard photo into a clean sequence diagram"
diagramTypeNoPreferred output diagram type. Leave blank to let the AI decide based on the image content.
isIconEnabledNoSet to true when the user asks to include icons in the diagram.
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the input formats (public URLs or base64 data URIs), supported image formats (JPEG, PNG, GIF, WebP), and the return value (link to view and edit the diagram). However, it doesn't mention potential limitations like file size constraints, processing time, authentication requirements, or error conditions, which would be valuable for a tool performing complex image conversion.

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 description is efficiently structured in three sentences: the core functionality, when to use it, and what it returns. Every sentence adds value without redundancy. It's appropriately sized and front-loaded with the main purpose.

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 tool with 4 parameters, 100% schema coverage, and no output schema, the description provides good contextual completeness. It explains the tool's purpose, usage context, input formats, and return value. The main gap is the lack of behavioral details about limitations or error handling, which would be helpful given the complexity of image-to-diagram conversion.

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 schema already documents all parameters thoroughly. The description adds some context by mentioning 'public image URLs or base64 data URIs' and 'software engineering diagram,' but doesn't provide additional parameter semantics beyond what's in the schema descriptions. This meets the baseline expectation when schema coverage is complete.

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's purpose: 'Convert an image... into a clean diagram.' It specifies the input types (whiteboard photo, screenshot, hand-drawn sketch) and output (software engineering diagram), and distinguishes it from sibling tools by focusing on image input rather than ASCII, JSON, Mermaid, or text inputs.

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 provides clear context for when to use this tool: 'when the user provides an image URL or base64-encoded image and wants it converted to a proper software engineering diagram.' However, it doesn't explicitly state when NOT to use it or mention specific alternatives among the sibling tools by name, which would be needed for a perfect score.

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/erajasekar/ai-diagram-maker-mcp'

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