Skip to main content
Glama

chart

Create, manage, and configure Excel charts: add series, set axes, trendlines, legends, and more.

Instructions

Perform chart lifecycle and series/configuration operations on a worksheet.

Args: action: One of "create", "delete", "list", "add_series", "set_axes", "trendline", "combo", "data_labels", "legend", "update". - "create": create a chart from data_range at target_cell; optional categories_range overrides x-axis category labels. - "delete": remove a chart (optionally chart_index). Destructive. - "list": return list of charts (read-only). - "add_series": add a series to an existing chart (requires chart_index, data_range). - "set_axes": configure axis titles/ranges/number format; optional categories_range sets x-axis category labels. - "trendline": add a trendline to a series. - "combo": create a combo chart; requires bar_columns and line_columns. - "data_labels": configure data labels by chart_title. - "legend": configure legend by chart_title. - "update": update basic title/size/anchor of an existing chart. file_path: Workbook path. sheet_name: Worksheet name containing chart or data. chart_index: Optional index of target chart (default 0 or required for some actions). data_range: Range string used for chart creation or series. chart_type: Chart kind (e.g. "column", "line"). target_cell: Anchor cell for new chart. ... (other visual/series parameters)

Returns: str or list[ChartInfo]: Created chart id/string or list of ChartInfo for "list".

Raises: ValueError: If required parameters are missing for the selected action.

Notes: - Dispatch mapping: see function source; common destructive actions include "delete". - Chart creation mutates the workbook; consider documenting expected anchor and sizing units.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
styleNo
titleNo
widthNo
x_maxNo
x_minNo
y_maxNo
y_minNo
actionYes
heightNo
x_titleNo
y_titleNo
file_pathYes
chart_typeNocolumn
data_rangeNo
sheet_nameYes
show_valueNo
anchor_cellNoF1
bar_columnsNo
chart_indexNo
chart_titleNo
log_scale_yNo
show_legendNo
target_cellNoE1
line_columnsNo
series_indexNo
x_axis_titleNo
y_axis_titleNo
show_categoryNo
x_axis_columnNo
label_positionNo
trendline_typeNolinear
legend_positionNo
periods_forwardNo
show_percentageNo
title_from_dataNo
y_number_formatNo
categories_rangeNo
periods_backwardNo
show_series_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden. It notes destructive actions ('delete' is labeled 'Destructive') and mutation ('Chart creation mutates the workbook'), and marks 'list' as read-only. However, it lacks detail on side effects beyond these, such as permission requirements or what happens to existing charts during updates.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is organized into clear sections (Args, Returns, Raises, Notes) and uses bullet points for actions, which aids readability. However, it includes unhelpful meta-commentary like 'consider documenting expected anchor and sizing units' and 'Dispatch mapping: see function source', which adds noise without value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with 10 actions and 40 parameters, the description is incomplete. It covers each action's purpose but not the full parameter set, and the Notes section is weak. The output schema is mentioned but not detailed, and many parameter interactions and requirements are omitted, making it insufficient for robust agent usage.

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

Parameters2/5

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

The schema has 40 parameters with 0% description coverage, so the description must compensate. It explains the 'action' parameter in depth and briefly mentions file_path, sheet_name, chart_index, data_range, chart_type, and target_cell, but the vast majority of parameters (e.g., width, height, show_value, label_position) are left to the '...' placeholder, leaving a significant semantic gap.

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 handles chart lifecycle and series/configuration operations, with a detailed list of actions ('create', 'delete', 'list', etc.) that specify exact functions. It distinguishes itself from sibling tools by being the only chart-focused tool, though the umbrella phrase is somewhat broad.

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 implies usage by listing actions and their requirements (e.g., 'add_series' requires chart_index and data_range), but it does not explicitly state when to prefer this tool over alternatives. Since no sibling tools are chart-related, usage is implicitly clear, yet no explicit exclusions or alternative guidance are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mbeps/excel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server