Skip to main content
Glama

delete_columns

Destructive

Deletes one or more columns from a Google Sheets sheet using spreadsheet ID, sheet name, and start/end column indexes to clean up or restructure tabular data.

Instructions

Delete columns from a sheet.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet start_column: 0-based index of the first column to delete (0 = column A) end_column: 0-based index of the last column to delete (inclusive). If omitted, deletes only start_column.

Returns: Result of the operation. Returns {"error": ...} without calling the Sheets API if start_column is negative or end_column precedes start_column.

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": {
      "spreadsheet_id": "<spreadsheet_id>",
      "sheet": "<sheet>",
      "start_column": "<start_column>"
    },
    "name": "delete_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYes
end_columnNo
start_columnYes
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

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, so the safety profile is covered; the description adds genuinely new behavior by disclosing client-side validation — a negative start_column or an end_column preceding start_column returns {"error": ...} without hitting the Sheets API. It does not say whether remaining columns shift left or whether the deletion is reversible, which are the natural follow-on questions for a destructive range operation.

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?

The purpose is front-loaded in one line, followed by cleanly separated Args and Returns blocks, so an agent can scan to the parameter it needs. The "Result of the operation" phrase is a small piece of filler, but the error-condition note earns its space.

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?

An output schema exists, yet the description still usefully documents the error-return case, and every one of the four parameters is explained. What is missing is the post-deletion effect on the sheet layout, which matters for a destructive range mutation.

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

Parameters4/5

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

With schema description coverage at 0%, the description carries the full burden and mostly delivers: spreadsheet_id is located via the URL, sheet is the sheet name, start_column is 0-based with A=0, and end_column is 0-based inclusive with an explicit default of "start_column only." Only minor gaps remain, such as not restating that end_column is nullable/optional at the schema level.

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?

"Delete columns from a sheet" is a specific verb plus resource, and the scope (columns within an existing sheet) distinguishes it from delete_rows and delete_sheet. It stops short of explicitly naming a sibling, so an agent must infer the boundary from the resource noun alone.

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 use case is implied by the name and first line — call it when you need columns removed from a sheet — but there is no explicit when-to-use versus when-not guidance. Nothing tells the agent how this differs from hide_columns or delete_rows, nor are any prerequisites (write access, sheet existence) stated.

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