Skip to main content
Glama

delete_range

Delete a specified range of cells in an Excel worksheet and shift remaining cells up or left to fill the gap.

Instructions

Delete a range of cells and shift remaining cells.

Args:
    sheet_name: Name of worksheet
    start_cell: Starting cell
    end_cell: Ending cell
    session_id: Session ID from open_workbook (preferred)
    filepath: Path to Excel file (legacy, deprecated)
    shift_direction: Direction to shift cells ("up" or "left")
    
Note: Use session_id for better performance. filepath parameter is deprecated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sheet_nameYes
start_cellYes
end_cellYes
session_idNo
filepathNo
shift_directionNoup

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

Without annotations, the description bears full responsibility. It states the deletion and shifting effect, but does not disclose whether the workbook must be open, if the operation is reversible, or any side effects. The deprecated filepath note is insufficient.

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 succinct, with a one-line overview followed by a bullet-style parameter list. No redundant information, and the deprecated note is appropriately placed.

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

Completeness4/5

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

Given the existence of an output schema, the absence of return value description is acceptable. The param explanations are thorough, but the description could mention the required prerequisite of an open workbook session.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must explain parameters. It provides clear explanations for all six parameters, including acceptable values for shift_direction ('up' or 'left'), and notes about session_id preference and filepath deprecation. This adds significant value.

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 clearly states the action 'Delete a range of cells' and the resource 'range of cells'. It is specific enough to distinguish from row/column deletion siblings, though it does not explicitly differentiate.

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 tool versus alternatives like delete_sheet_rows or delete_sheet_columns. The note about session_id is parameter guidance, not usage context. No prerequisites or exclusions mentioned.

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/fastmcp-me/xlwings-mcp-server'

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