Skip to main content
Glama

create_plantuml_diagram

Generates PlantUML flow and other diagrams from source code or an input file, exporting them as PNG or SVG to a specified absolute path.

Instructions

PlantUMLを使ってフロー図などを作成し、指定された形式で出力します。PlantUMLソースまたは中間ファイルパスを受け取ります。ファイルの受け渡しは絶対パスを使用する。

重要なコーディングルール(必読):

  • rectangle 内の説明はすべてラベル文字列内に改行で入れる形式とすること。 例: rectangle "タイトル\n- 説明行1\n- 説明行2" as ID #FFF2CC

  • '識別子 : テキスト' のような形式(例: ID : 説明)は避けること。 PlantUML の一部の図タイプや古いバージョンで構文エラーを引き起こす可能性があります。

  • 必要に応じて color 指定は各要素の末尾に '#RRGGBB' で付与すること。

Input Schema

NameRequiredDescriptionDefault
sourceNoPlantUMLのソースコード
output_pathYes出力ファイルの絶対パス
output_formatYes出力形式(png, svg)
input_filepathNoPlantUMLのソースコードが書かれた中間ファイルのパス。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a tool that writes a file to disk. It adds one useful constraint ('ファイルの受け渡しは絶対パスを使用する') but says nothing about overwrite behavior on an existing output_path, whether parent directories must exist, what happens on invalid PlantUML syntax, or what the call returns after writing. The three 'coding rules' bullets govern the content of the source string rather than the tool's own behavior.

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?

Purpose and input expectations are front-loaded in the first two lines, followed by a clearly demarcated and bulleted rules block flagged as must-read. The rules are somewhat specialized and lengthen the definition, but each bullet carries actionable content and none is redundant filler.

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?

With no output schema and no annotations, the definition should describe the write side effect and any return value; it only indicates that output goes to output_path in the chosen format, leaving success/failure behavior and the response undescribed. The input side, by contrast, is covered well between the 100%-covered schema and the added path and syntax rules.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline would be 3, but the description adds meaning beyond the schema: it states the absolute-path requirement for file passing, which the input_filepath schema description does not mention, and the coding-rule bullets meaningfully constrain how the `source` parameter must be authored (label strings with \n instead of 'ID : text', trailing #RRGGBB colors).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource ('PlantUMLを使ってフロー図などを作成し、指定された形式で出力します') and names the accepted inputs, which clearly separates it from the sibling chart tools (mermaid/plotly/vega-lite) by rendering engine. It stops short of explicitly contrasting itself with those siblings, but the resource and output formats (png/svg) make the purpose unambiguous.

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

Usage Guidelines2/5

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

The description states that it accepts either PlantUML source or an intermediate file path, but never says when to prefer one over the other, even though the schema enforces a oneOf choice that the agent must resolve on every call. There is also no guidance on when to reach for this tool instead of the Mermaid sibling; the only 'guidance' present is syntax rules for the generated diagram text.

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