Skip to main content
Glama

Delete columns

delete_columns
Destructive

Delete one or more columns from a sheet, shifting remaining columns left and adjusting every affected formula reference automatically. Only works on workbooks in Excel Online mode. Structure changed afterward — consider re-running analysis to refresh insights.

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": {
      "workbookId": "<workbookId>",
      "sheetName": "<sheetName>",
      "startColumn": "<startColumn>",
      "count": "<count>"
    },
    "name": "delete_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYes
sheetNameYes
workbookIdYes
startColumnYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and idempotentHint=false, but the description adds behavior that annotations cannot express: remaining columns shift left and every affected formula reference is adjusted automatically. It also discloses the environment constraint (Excel Online mode) and warns that workbook structure changes afterward, which is precisely the ripple-effect context a caller needs before a destructive mutation.

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?

Three short sentences, front-loaded with the action and its cascade effect, then the prerequisite, then the post-condition advisory. No filler or restatement of the title.

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?

Behaviorally the description is strong for a destructive mutation with no output schema: it covers side effects, environment limits, and follow-up. However, with four required, undocumented parameters, an agent still cannot tell from the definition what workbookId versus sheetName expects or how startColumn is formatted, leaving a real gap for a tool of this complexity.

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

Parameters2/5

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

Schema description coverage is 0% across four required parameters, so the description carries the full burden and largely fails to. 'One or more columns' loosely hints at count, but workbookId, sheetName, and the startColumn letter-format pattern (^[A-Za-z]{1,3}$) go entirely unexplained, as does the count maximum of 500.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Delete one or more columns from a sheet') and scopes the operation, making it immediately distinguishable from insert_columns and delete_rows. It even states the structural consequence (remaining columns shift left), so an agent knows exactly what the tool does without opening the schema.

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

Usage Guidelines4/5

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

It gives a hard precondition that an agent could not otherwise know: 'Only works on workbooks in Excel Online mode.' It also suggests a follow-up action (re-run analysis after structure changes). It stops short of stating when not to use it or naming alternative tools (e.g., delete_rows for row-range removal), which keeps it at a 4.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources