Skip to main content
Glama

insert_delete

Destructive

Insert or delete rows and columns in Excel workbooks while automatically updating formulas, named ranges, tables, and merged cells across all sheets to prevent broken references.

Instructions

Insert or delete rows/columns. Unlike plain openpyxl, formulas across ALL sheets, named ranges, tables and merged cells are re-pointed (references into deleted cells become #REF! like Excel).

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": {
      "path": "<path>",
      "action": "<action>",
      "index": "<index>"
    },
    "name": "insert_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile path, relative to the root folder (or absolute inside it).
countNoHow many rows/columns.
indexYesRow number (1-based) or column letter/number where to insert/delete.
sheetNoSheet name (or 0-based index). Default: first sheet.
actionYesOperation.
dry_runNoPreview the change without saving.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the bar is lower, yet the description still adds real context: reference re-pointing spans ALL sheets plus named ranges, tables and merged cells, and deleted-cell references become #REF! like Excel. That is precisely the consequence an agent needs before invoking a destructive structural edit; it stops short of noting the dry_run escape hatch or whether the change is undoable.

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 sentences, zero filler, with the operation stated first and the differentiating behavior immediately after. Every clause contributes information.

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?

For a six-parameter destructive mutation with full schema coverage and no output schema, the description supplies the essential behavioral model (cross-sheet reference repair, #REF! fallout). It could be more complete by stating what dry_run returns and whether the operation is reversible, but nothing needed to call it correctly is missing.

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% and every parameter (path, index, count, sheet, action, dry_run) carries its own description, so the schema carries the parameter burden. The description adds only an indirect hint about index semantics through the #REF! behavior, which is the expected baseline-3 outcome.

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?

"Insert or delete rows/columns" gives a concrete verb pair and resource, and the schema's action enum narrows it further. It is clearly separable from data-writing siblings like write_range or transform, though the description itself never names an alternative.

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

Usage Guidelines3/5

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

The "Unlike plain openpyxl" clause implies when this tool is preferable (formula-aware structural edits) but frames it against a library, not against sibling tools such as write_range or transform. There is no explicit when-not guidance or mention of using dry_run to preview before a destructive change.

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