Skip to main content
Glama

create_mermaid_chart

Generate Mermaid charts from source code or a file path and export them as HTML to a specified absolute output path.

Instructions

Mermaidを使ってチャートを作成し、HTML形式で出力します。Mermaidソースまたは中間ファイルパスを受け取ります。ファイルの受け渡しは絶対パスを使用する。

Input Schema

NameRequiredDescriptionDefault
sourceNoMermaidのソースコード
output_pathYes出力ファイルの絶対パス
output_formatYes出力形式(html)
input_filepathNoMermaidのソースコードが書かれた中間ファイルのパス。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the output format (HTML only) and the absolute-path requirement for file handoff. It is silent on whether an existing output file is overwritten, whether Mermaid tooling must be installed, and what is returned on success or failure.

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?

Three short sentences, front-loaded with the action and output format, then the input modes, then the path rule. The output_format detail mildly restates schema content, but there is no padding.

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 four-parameter, single-output-format tool with no annotations or output schema, the definition covers what the tool does, its two input modes, and the path convention. The main remaining gap is overwrite/error behavior, which is minor given the tool's narrow scope.

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 coverage is 100%, so the baseline is 3. The description's only addition beyond the schema is that absolute paths are used for file passing, which slightly extends the input_filepath definition that the schema does not mark as absolute.

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?

States a specific verb and resource (create a Mermaid chart) plus the output medium (HTML), which implicitly separates it from the sibling chart/diagram tools. It does not explicitly name or contrast any sibling, so the differentiation is inferential rather than stated.

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 tells the agent it may supply either Mermaid source or an intermediate file path, which implies the two usage modes. It offers no guidance on when to prefer this tool over create_vega_lite_chart or create_plantuml_diagram, and no exclusions or prerequisites.

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