Skip to main content
Glama

add_chart

Create native, editable Excel charts from a cell range to turn spreadsheet data into column, bar, line, pie, scatter, or area visuals.

Instructions

Add a native, editable Excel chart (column, bar, line, pie, scatter, area) built from a cell range.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>",
      "data_range": "<data_range>"
    },
    "name": "add_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile path, relative to the root folder (or absolute inside it).
sheetNoSheet name (or 0-based index). Default: first sheet.
titleNo
anchorNoTop-left cell where the chart is placed (default: right of the data).
dry_runNoPreview the change without saving.
stackedNo
x_titleNo
y_titleNo
chart_typeNoChart type.column
data_rangeYesData incl. header row, e.g. 'B1:D13' (one series per column).
target_sheetNoPut the chart on another sheet (e.g. 'Dashboard').
categories_rangeNoLabels / X values without header, e.g. 'A2:A13'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the write/non-destructive profile is covered. The description adds real context with 'native, editable', which tells the agent it produces a genuine chart object rather than an image, and 'built from a cell range' implies the chart stays linked to cells. It says nothing about overwrite behavior at an existing anchor, sheet-existence requirements, or dry_run preview semantics, so value beyond annotations is modest.

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

Conciseness5/5

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

A single front-loaded sentence that identifies the output, its qualities, and the chart varieties with no filler. Nothing in it is redundant prose, even if part of the enumeration duplicates the schema enum.

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 12-parameter mutation tool with no output schema, the description is thin: it never mentions the dry_run preview, anchoring/placement defaults, stacked series, axis titles, or plotting on another sheet, all of which materially affect invocation. Annotations carry the safety profile, but the behavioral surface of this tool is only partially covered.

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 67%, and the schema already documents path, sheet, anchor, dry_run, chart_type, data_range, target_sheet, and categories_range with useful detail including an example range format. The description's chart-type list merely restates the enum and its 'from a cell range' phrase restates the data_range description, so it adds essentially no meaning beyond the structured fields and leaves title, stacked, x_title, and y_title to their self-evident names.

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 ('Add') and a specific resource ('native, editable Excel chart') sourced from a cell range, and enumerates the supported chart types. It is clearly distinguishable from data-manipulation siblings such as format_range, query, or build_report, though it does not name or contrast any sibling explicitly.

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 when-to-use or when-not-to-use guidance and no alternatives are referenced – an agent gets no help deciding between add_chart and build_report or format_range. Prerequisites (target file existing, range containing a header row) and side effects (replacing an existing chart at the anchor) are not discussed.

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