Skip to main content
Glama

deleteColumns

Delete one or more column ranges from a Google Sheet by 1-based indexes, with right-to-left processing to prevent index shifting during multiple deletions.

Instructions

Deletes one or more columns from a Google Sheet. Columns are 1-based. Multiple ranges are processed right-to-left to avoid index shifting.

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": {
      "spreadsheetId": "<spreadsheetId>",
      "columns": "<columns>"
    },
    "name": "deleteColumns"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnsYesArray of column ranges to delete. Each entry is {startIndex, endIndex} using 1-based column numbers.
sheetNameNoName of the sheet/tab. Defaults to the first sheet if not provided.
readHandleNoCapability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio.
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.
valueReadHandleNoAdditional readSpreadsheet handle covering all deleted cells across the full current grid height. Required on the modern runtime. Deletion consumes both handles; reread before another mutation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the right-to-left range processing and the index-shifting rationale, which is real behavioral detail. However, for a destructive mutation it omits permanence/irreversibility and the handle-consumption requirement that the schema mentions, so the safety profile remains incomplete.

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 short sentences, front-loaded with the action and followed by the two facts that affect correctness. The '1-based' clause mildly duplicates the schema, but there is no filler.

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?

With five parameters, no annotations, and no output schema, the definition covers the core operation and range ordering adequately. It still leaves an agent without confirmation that deletion is permanent or that both read handles are consumed, gaps that matter for a destructive tool.

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 100%, so the schema already documents startIndex, endIndex, sheetName, spreadsheetId, and the read handles. The description's 'Columns are 1-based' restates the schema, and the right-to-left note clarifies how multiple ranges interact but not parameter formats. Baseline 3 applies.

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: 'Deletes one or more columns from a Google Sheet.' The column-specific scope distinguishes it from generic delete tools in the sibling list, though it never explicitly contrasts itself with deleteRange or deleteSheet.

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 when-to-use or when-not guidance. The description never says when to prefer this over deleteRange or deleteSheet, nor does it state prerequisites such as needing a prior read handle. Usage must be inferred entirely from the tool name.

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