Skip to main content
Glama
arunsanna

gemini-diagram-mcp

by arunsanna

generate_image

Generate diagrams, charts, or visualizations from natural language descriptions. Auto-detects diagram type and asks clarifying questions when needed.

Instructions

Generate a diagram, chart, or visualization using Gemini. Intelligently detects type from prompt and asks clarifying questions when uncertain. Supports: chart, comparison, flow, architecture, timeline, hierarchy, matrix, hero, visualization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoImage resolution (1K, 2K, or 4K)2K
typeNoType of image to generate (auto-detected if not specified)auto
styleNoStyle mode. 'professional' enforces clean SaaS aesthetic (white bg, standard palette). 'creative' removes aesthetic constraints so the prompt drives the look (vintage, retro, dark, artistic, etc.)professional
outputNoOutput filename (auto-generated if not provided). In server mode, this is treated as a filename only.
promptYesNatural language description of the image to generate
watermarkNoWatermark text rendered in the bottom-right corner of the image. Defaults to "arunsanna.com".
aspect_ratioNoImage aspect ratio (auto-selected based on type if not specified)
user_approvalNoSet true when the requester explicitly approves using the supplied architecture information for diagram generation. This does not permit secrets or bypass provider safety filters.
Behavior3/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It adds useful context about auto-detecting type and asking clarifying questions when uncertain. However, it does not disclose other important behaviors such as output handling, potential side effects, or that 'user_approval' is required for certain inputs, leaving significant gaps.

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 concise at three sentences, front-loading the main purpose in the first sentence. The list of types is somewhat redundant with the schema but serves as a quick reference. No unnecessary fluff, though it could be tighter by dropping the redundant list.

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?

Given the tool has 8 parameters and no output schema, the description covers the core purpose and a behavioral trait but lacks information about return values, when not to use it, and how it compares to sibling tools. The presence of siblings makes this incompleteness more impactful, so a score of 3 is appropriate.

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?

The schema description coverage is 100%, so the schema already documents all parameter meanings. The description adds a list of supported types that mirrors the 'type' enum but does not provide extra semantics beyond the schema. This is a standard baseline when the schema 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 verb 'Generate' and the resource 'a diagram, chart, or visualization using Gemini', and lists the supported types. This distinguishes it from sibling tools like 'refine_image' and 'prepare_image', which imply modification or preparation rather than creation.

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 generating diagrams/charts and mentions intelligent type detection plus clarifying questions, but it does not provide explicit guidance on when to choose this tool over siblings, nor does it mention any exclusions or prerequisites. Sibling tools exist, making this gap notable.

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/arunsanna/gemini-diagram-mcp'

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