Skip to main content
Glama
xlsx-mcp-server
by knorq-ai

delete_rows

Deletes a specified number of rows at a given position in an Excel .xlsx sheet, shifting the remaining rows up.

Instructions

Delete rows at the specified position. Remaining rows shift up.

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": {
      "file_path": "<file_path>",
      "sheet": "<sheet>",
      "row": "<row>",
      "count": "<count>"
    },
    "name": "delete_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowYesFirst row to delete (1-based)
countYesNumber of rows to delete
sheetYesSheet name or 1-based index
file_pathYesAbsolute path to the .xlsx file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it usefully discloses the key side effect that 'remaining rows shift up', which is real behavioral value beyond the schema. It does not state that the deletion is destructive/irreversible, whether the file is written immediately, what happens if row+count exceeds sheet bounds, or whether a response is returned.

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, zero filler, and the operation is front-loaded before the side-effect explanation.

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 destructive four-parameter mutation with no annotations and no output schema, the description covers the core effect but omits persistence behavior, error/out-of-range handling, and irreversibility. Adequate to call correctly, but not complete for a write operation.

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 four parameters are already documented including 1-based row semantics and count meaning, setting the baseline at 3. The description adds only marginal framing ('at the specified position') that does not extend beyond the schema.

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 ('Delete rows') plus the scope ('at the specified position'), which is unambiguous in isolation. It does not explicitly distinguish itself from siblings like delete_columns or delete_sheet, but the verb+resource pairing is enough for an agent to identify it.

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 versus alternatives such as insert_rows, write_rows, or clear_cells, and no prerequisites or exclusions. Only the implicit cue 'position' hints at targeting existing rows rather than writing data.

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