Skip to main content
Glama
0PValencia

diagram-studio-mcp

by 0PValencia

Renderizar diagrama

render_diagram

Render diagrams from source code using Kroki. Supports Mermaid, Graphviz, PlantUML, D2, and ERD, returning file path and base64.

Instructions

Renderiza source con Kroki. Engines: mermaid, graphviz (DOT), plantuml, d2, erd. Devuelve path del archivo y base64 (recortado en text si es grande).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
engineNomermaid
formatNopng
sourceYes
outputPathNoRuta de salida; default /tmp/diagram-studio/<timestamp>.<fmt>
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden. It goes beyond a simple action statement by revealing the return type (file path and base64) and the truncation behavior for large diagrams. This is additional behavioral context. However, it does not mention side effects like filesystem writes (though implied by 'path del archivo'), network dependencies, or possible error conditions, so it is not fully transparent.

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 two sentences long, immediate and front-loaded with the main action. It wastes no space and includes only relevant details: the rendering service, supported engines, and the concise return format. Every word earns its place.

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, no annotations, and no output schema, the description provides a solid foundation: it explains the purpose, engine options, and return format with a caveat. It relies on the schema for outputPath default and format enum details, which is acceptable. It does not cover error cases or clarify what constitutes 'large', but it is sufficient for an agent to understand and invoke the tool correctly in most scenarios.

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 low at 25%, with only outputPath having a schema description. The description adds the list of engines, which duplicates the schema enum but also clarifies that graphviz expects DOT syntax. It does not provide additional meaning for the format or source parameters, which remain minimally explained. Thus, the description partially compensates for the low schema coverage but does not fully fill the gap.

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 'Renderiza' with the resource 'source' and identifies Kroki as the rendering service. It also lists supported engines, which distinguishes it from the sibling list_engines tool whose purpose is simply listing engines. The action is specific and unambiguous.

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 when to use this tool (to render diagrams) and indirectly contrasts with list_engines, but it never explicitly states 'use this when you need to render' or 'use list_engines to see available engines'. There are no prerequisites, exclusions, or alternative scenarios mentioned, so the guidance remains implicit rather than direct.

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/0PValencia/diagram-studio-mcp'

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