Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

delete_range

Destructive

Deletes spreadsheet cells and shifts remaining cells up or left, updating supported dependent references while refusing unsafe or unsupported changes before saving.

Instructions

Delete cells and shift up/left, updating supported dependent references.

Ambiguous/straddling/dynamic references and affected layout metadata are
refused without saving. Sheets with drawings are unsupported. dry_run runs
the same checks; reference_updates reports supported dependency changes.

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": {
      "filepath": "<filepath>",
      "sheet_name": "<sheet_name>",
      "start_cell": "<start_cell>",
      "end_cell": "<end_cell>"
    },
    "name": "delete_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
end_cellYes
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
sheet_nameYes
start_cellYes
shift_directionNoup

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • addedInput schema / properties / filepath / description
      Added value: +"Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing."
  2. First observedv0.8.0

TDQS

A4/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, it discloses atomicity ('refused without saving'), the exact classes of input that are rejected (ambiguous/straddling/dynamic references, affected layout metadata), an unsupported workbook feature (sheets with drawings), and what dry_run actually validates. This is the kind of failure-mode and safety detail an agent cannot get from the annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with the core action front-loaded and the failure conditions following in a logical order; nothing is padded. The final clause about 'reference_updates reports supported dependency changes' is opaque given no such parameter or output schema exists, slightly muddying the close.

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?

For a destructive range mutation with no output schema, the description covers what matters: what is shifted, what gets rejected and that nothing is saved, unsupported workbook states, and the dry-run escape hatch. Remaining gaps are parameter-level details rather than missing behavioral context.

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 description coverage is 17%, so the description must compensate more than it does. It explains dry_run's semantics but never defines the accepted values for shift_direction (only 'up' is shown as default, while the prose says 'up/left'), and says nothing about start_cell/end_cell format. The mention of 'reference_updates' refers to no field in the schema, adding ambiguity rather than clarity.

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 cells and shift up/left') plus the distinguishing effect of updating dependent references, which separates it from row/column deletion siblings. It stops short of naming any sibling explicitly, so the differentiation is inferential rather than stated.

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 description implies when to use dry_run ('runs the same checks') and lists preconditions that make the call fail, which is useful guidance. It gives no explicit statement of when to choose this over delete_sheet_rows, delete_sheet_columns, or delete_named_range, nor how shift_direction should be chosen.

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

Deploy Server

Other Tools