Skip to main content
Glama

create_plotly_graph

Generate Plotly graphs from Python code or an intermediate file, then export them as PNG, SVG, or HTML using absolute paths.

Instructions

Plotlyを使ってグラフを作成し、指定された形式で出力します。Pythonコードまたは中間ファイルパスを受け取ります。ファイルの受け渡しは絶対パスを使用する。

Input Schema

NameRequiredDescriptionDefault
output_pathYes出力ファイルの絶対パス
python_codeNoPlotlyグラフを生成するPythonコード。figオブジェクトを返す必要があります。
output_formatYes出力形式(png, svg, html)
input_filepathNoPlotlyグラフを生成するPythonコードが書かれた中間ファイルのパス。figオブジェクトを返す必要があります。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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. It discloses only that absolute paths are used for file passing; it says nothing about whether output_path is overwritten, how arbitrary Python code is executed or sandboxed, or what happens when the code raises an error or fails to produce a fig object — all material for a tool that runs user code.

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 with the core action front-loaded and the path constraint last. No padding, though the absolute-path note partly duplicates schema text.

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?

Parameter documentation is complete via the schema and there is no output schema to explain, but a code-executing, file-writing tool with zero annotations should disclose overwrite behavior and failure handling. The description stops short of that.

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 four parameters including the enum values and the fig-object requirement. The description adds only the absolute-path constraint, which the schema itself already states for output_path. Baseline 3 applies.

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 description names a specific verb and resource ('Plotlyを使ってグラフを作成'), states the output behavior ('指定された形式で出力'), and names the two accepted input modes. Plotly as the named library implicitly separates it from the mermaid/plantuml/vega-lite siblings, but no explicit differentiation statement is made.

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?

It mentions that either Python code or an intermediate file path is accepted, which hints at two modes, but gives no rule for choosing between them and no statement about when this tool should be preferred over the other chart-creation siblings. An agent is left to infer all routing.

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