Skip to main content
Glama

excel_delete_sheet

Delete a specific sheet from an Excel workbook. Ensures at least one sheet remains.

Instructions

Remove a sheet from the workbook.

Refuses to delete the last remaining sheet (VAL-EXCEL-036 / VAL-EXCEL-037): the workbook must always have at least one sheet.

Args: path: Path to an existing .xlsx. name: Name of the sheet to delete. folder: Optional base folder for relative paths.

Returns: {"ok": True}.

Raises: OfficeMCPError: ERR_FILE_NOT_FOUND if the file is missing, ERR_SHEET_NOT_FOUND for an unknown sheet, ERR_INVALID_PARAMS when the target is the only remaining sheet, ERR_UNSUPPORTED_FMT for non-.xlsx extensions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
nameYes
folderNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits: the destructive nature, the constraint on the last sheet, specific error conditions, return value, and parameter details. It leaves no ambiguity about what the tool does.

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?

The description is concise, well-structured with a summary line, constraint, args, returns, and raises sections. Every sentence is useful and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (3 params, output schema, no annotations), the description covers all necessary aspects: parameter meanings, return value, error types, and the critical constraint. It is complete for an agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaningful explanations for each parameter beyond the schema (path, name, folder), compensating for the 0% schema description coverage. It could be improved with format examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the action 'Remove a sheet from the workbook' and specifies a key constraint (refuses to delete the last sheet), which distinguishes it from siblings like excel_create_sheet or excel_rename_sheet.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context on when to use (to delete a sheet) and explicitly warns against deleting the last remaining sheet. However, it does not explicitly mention alternative tools for other sheet operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gawirable/office-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server