Skip to main content
Glama

create_vega_lite_chart

Creates Vega-Lite charts from a JSON specification or input file and exports them as PNG or SVG to a specified absolute output path.

Instructions

Vega-Liteを使ってチャートを作成し、指定された形式で出力します。Vega-Lite JSON仕様または中間ファイルパスを受け取ります。ファイルの受け渡しは絶対パスを使用する。

Input Schema

NameRequiredDescriptionDefault
vl_specNoVega-LiteのJSON仕様を文字列化したもの
output_pathYes出力ファイルの絶対パス
output_formatYes出力形式(png, svg)
input_filepathNoVega-LiteのJSON仕様が書かれた中間ファイルのパス。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description must carry the full behavioral burden. It does disclose the file-handoff convention (absolute paths) and that output is written in the chosen format, which is useful context. It does not say whether output_path is overwritten, how the two input modes differ, or what happens on failure, leaving meaningful gaps for a file-writing operation.

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 purpose and then the input and path conventions; nothing is wasted. The only minor redundancy is restating the absolute-path rule that the schema already encodes for output_path.

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?

For a four-parameter tool with full schema coverage and no output schema, the description conveys purpose, input modes, and path conventions adequately. It is incomplete on sibling differentiation and on file-writing behavior (overwrite, error handling), which an agent would want for correct invocation.

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 well, establishing a baseline of 3. The description reinforces the absolute-path requirement for file handoff and the spec-or-file input choice, but adds no format or structural detail beyond what the schema provides.

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 states a specific verb and resource: it creates a chart 'using Vega-Lite' and outputs it in the specified format. That is enough to distinguish it from generic tools. However, it never mentions the sibling chart tools (create_mermaid_chart, create_plotly_graph), so an agent must infer the choice purely from the format name.

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?

There is no guidance on when to use this tool instead of the other chart-creation siblings, nor any prerequisites or exclusions. The mention of accepting either a Vega-Lite JSON spec or an intermediate file path is input-shape information rather than a when-to-use rule, so the agent is left to infer selection.

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