Skip to main content
Glama

delete_sheet

Remove a specified sheet from an Excel workbook by providing the workbook ID and sheet name or 1-based index.

Instructions

Delete a sheet from a workbook

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

Input Schema

NameRequiredDescriptionDefault
sheetYesSheet name or index (1-based)
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?

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about irreversibility (is the sheet recoverable?), whether a minimum sheet count is enforced, what happens if the sheet name is wrong, or whether changes require a subsequent save. For a destructive mutation this is a significant gap; only the bare implication of 'delete' conveys destructiveness.

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 zero redundant wording. It is efficient, though its brevity reflects under-specification rather than disciplined compression.

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?

Parameters are fully documented by the schema and there is no output schema to explain, but for an irreversible destructive operation with no annotations the description should at minimum state whether deletion is permanent or can be undone. That omission is the main completeness gap.

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%, and the schema already explains both workbookId and the sheet name-or-1-based-index semantics. The description adds no meaning beyond that, so the baseline 3 applies.

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 states a specific verb and resource ('Delete a sheet') with the parent container ('from a workbook'), which is enough to distinguish it from destructive siblings like delete_chart or from create_sheet/rename_sheet. It stops short of naming any sibling explicitly, so it is clear but not differentiating.

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 versus alternatives: nothing says whether a workbook must be open, whether the deletion is persisted without save_workbook, or when rename_sheet/close_workbook would be the better call. The agent must infer all preconditions.

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