Skip to main content
Glama

add_chart

Insert a chart into an Excel file by specifying data range, chart type, and anchor cell. Supports bar, line, pie, and scatter charts for clear data visualization.

Instructions

插入图表(差异化能力:官方 xlsx skill 无图表指导,竞品 knorq 明确不支持图表)。

参数:

  • data_range:数据区域,如 "B2:B10"

  • chart_type:bar / line / pie / scatter(默认 bar)

  • categories_range:分类轴区域,如 "A2:A10"

  • title:图表标题

  • anchor_cell:图表左上角锚定位置(默认 E2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sheetNo
titleNo
file_pathYes
chart_typeNobar
data_rangeYes
anchor_cellNoE2
categories_rangeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the behavioral burden. It explains parameter defaults and anchoring behavior, but does not explicitly state side effects such as modifying the file, whether an existing chart is replaced, or what return value or confirmation is produced. It adds some context beyond the schema but not comprehensive behavioral disclosure.

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?

The description is well-structured with a clear purpose line and bulleted parameter explanations, making key details front-loaded and easy to scan. The competitive differentiation line adds some length but remains relevant to why this tool should be chosen.

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 7-parameter tool with no annotations and no output schema, the description covers most operational details but misses the required file_path and sheet parameters. It also does not explain any post-condition or confirmation behavior, leaving the description adequate but not fully complete for an agent needing to invoke the tool correctly.

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 0%, so the description must compensate. It adds useful meaning for data_range, chart_type, categories_range, title, and anchor_cell with concrete examples and defaults. However, it omits the required file_path parameter and the sheet parameter entirely, which are necessary for correct invocation.

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 clearly states the tool inserts a chart and enumerates supported chart types, giving a specific verb and resource. It does not explicitly differentiate from sibling tools by name, but it does highlight its unique position relative to external skills/competitors.

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

Usage Guidelines4/5

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

The description provides clear context by noting that official xlsx skills lack chart guidance and the competitor does not support charts, implying this tool is the one to use when chart insertion is needed. It does not provide explicit exclusions or conditions for when not to use it, but the intended use case is reasonably clear.

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