Skip to main content
Glama

delete_chart

Deletes a chart from a specified worksheet in a workbook by its title or name, removing unwanted visualizations without requiring Microsoft Excel.

Instructions

Delete a chart by its title/name

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>",
      "chartName": "<chartName>"
    },
    "name": "delete_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYesSheet name or index (1-based)
chartNameYesThe chart title/name to delete
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 supplied, the description carries the full behavioral burden for a destructive operation, yet says nothing about irreversibility, permission requirements, error behavior when the name does not match, or whether the deletion is persisted only on save. The only behavioral hint is that lookup is by chart title/name, which implies name matching semantics.

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 short sentence with the identification key front-loaded and no wasted words. It is efficient, though its brevity reflects under-specification rather than disciplined trimming.

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 destructive, three-required-parameter mutation with no annotations and no output schema, the definition is too thin: it omits failure modes, persistence semantics, and whether related objects are affected. An agent could call it but could not predict the consequences of doing so.

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 three parameters (workbookId, sheet, chartName) are already documented, establishing a baseline of 3. The description only restates the chartName semantics ('title/name') and adds nothing about sheet scoping, index vs name usage, or duplicate chart 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 and resource ('Delete a chart') and adds the lookup key ('by its title/name'), which distinguishes it from the sibling create_chart. It does not, however, contrast itself with adjacent tools such as delete_sheet or explain what happens to the chart's underlying data.

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 instead of another tool, no prerequisites (must the workbook be open? must the chart already exist?), and no statement about exclusions or side effects. The agent must infer all invocation conditions.

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