Skip to main content
Glama

deleteChart

Removes a chart from a Google Spreadsheet using its numeric chart ID. Pass the ID returned when the chart was created to delete the correct chart.

Instructions

Deletes a chart from a Google Spreadsheet by chart ID. The chart ID is returned when a chart is created with insertChart.

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": {
      "spreadsheetId": "<spreadsheetId>",
      "chartId": "<chartId>"
    },
    "name": "deleteChart"
  }
}

Input Schema

NameRequiredDescriptionDefault
chartIdYesThe numeric chart ID to delete.
readHandleNoCapability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio.
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It conveys that this is an irreversible-sounding delete and where the ID originates, but says nothing about required scopes/auth, whether deletion is reversible, or how failures (stale/invalid chart ID) are reported.

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?

Two short sentences with the core action front-loaded and the ID-provenance hint second. Nothing is redundant or padded.

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 simple two-required-parameter deletion tool with no output schema and no annotations, the description covers the action and ID provenance adequately. It falls short on the destructive-operation context an agent would want, such as permission requirements and irreversibility, which annotations would otherwise have supplied.

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 100%, so all three parameters are already documented in the schema. The description adds a genuine semantic link by noting chartId is the value returned from insertChart, but offers nothing about the spreadsheetId or readHandle parameters beyond what the schema says.

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: 'Deletes a chart from a Google Spreadsheet by chart ID,' which is clearly distinct from sibling mutations like deleteSheet or deleteColumns. It does not explicitly contrast with those siblings, but the resource noun alone disambiguates.

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 second sentence tells the agent where a valid chartId comes from (insertChart), which is useful pre-call guidance. There is no statement of when not to use it, permission/scope prerequisites, or what happens if the chart was already removed.

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

Deploy Server

Other Tools