Skip to main content
Glama

Delete rows

delete_rows
Destructive

Delete one or more rows from a sheet, shifting remaining rows up and adjusting every affected formula reference automatically. Only works on workbooks in Excel Online mode. Structure changed afterward — consider re-running analysis to refresh insights.

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>",
      "sheetName": "<sheetName>",
      "startRow": "<startRow>",
      "count": "<count>"
    },
    "name": "delete_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYes
startRowYes
sheetNameYes
workbookIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the agent knows this is a destructive write. Beyond that, the description adds real context: rows shift upward, formula references are auto-adjusted, and the tool is limited to Excel Online workbooks. It does not say whether the action is undoable, though the destructive hint covers most of that.

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?

Three short sentences, each carrying new information: the action, the availability constraint, and the downstream consequence. Nothing is padded or repeated from the title.

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?

Behavior and constraints are well covered for a destructive mutation, but for a tool whose schema documents none of its four parameters, the definition leaves the agent guessing about indexing and limits. It is adequate only if the agent reads the raw schema for parameter meaning.

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

Parameters2/5

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

Schema description coverage is 0% across four required parameters (workbookId, sheetName, startRow, count), and the description adds no meaning for any of them — not the 1-based start index, not the 1–1000 count cap, not the default of 1. With zero schema documentation, the description needed to compensate and does not.

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?

Specific verb plus resource ("Delete one or more rows from a sheet"), with the side effect of shifting remaining rows up and recalculating formulas stated up front. The row scope clearly separates it from column-oriented or insert siblings even though no sibling is named.

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?

Gives a hard prerequisite ("Only works on workbooks in Excel Online mode") and post-action advice to re-run analysis to refresh insights, which is genuine when/when-after guidance. It stops short of naming an alternative tool or stating when deletion should be avoided in favor of, say, clearing contents.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources