Skip to main content
Glama

create_chart

Build bar, line, pie, or scatter charts from a specified data range in an Excel sheet, with an optional title, without needing Microsoft Excel installed.

Instructions

Create a chart from data in a sheet

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": {
      "workbookId": "<workbookId>",
      "sheet": "<sheet>",
      "type": "<type>",
      "dataRange": "<dataRange>"
    },
    "name": "create_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesType of chart to create
sheetYesSheet name or index (1-based)
titleNoChart title (optional)
dataRangeYesRange containing chart data (e.g., 'A1:B10')
workbookIdYesThe workbook ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden and does not meet it. It does not say whether the chart is persisted immediately or requires save_workbook, what happens on an invalid dataRange or missing sheet, or whether existing charts are overwritten.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though its brevity comes at the cost of the behavioral detail noted elsewhere.

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 five-parameter mutation tool with no annotations and no output schema, the description leaves key operational context unstated: prerequisite workbook/sheet state, persistence semantics, and error conditions. The schema covers parameters, but the surrounding workflow is missing.

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 all five parameters including the type enum and dataRange format are already documented in the schema. The description adds no meaning beyond that, which makes the baseline 3 appropriate.

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 and resource ('Create a chart') plus the data source ('from data in a sheet'), which clearly separates it from delete_chart. It does not distinguish itself from other creation siblings such as create_pivot_table, but the action/resource pairing is unambiguous.

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?

No guidance on when to use this versus alternatives, no preconditions (e.g., whether the workbook must first be opened with open_workbook), and no note about saving afterwards. The agent must infer the workflow entirely from sibling names.

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