Skip to main content
Glama
xlsx-mcp-server
by knorq-ai

delete_columns

Remove one or more columns from an Excel .xlsx sheet at a specified position; remaining columns shift left. Specify file, sheet, first column, and count.

Instructions

Delete columns at the specified position. Remaining columns shift left.

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": {
      "file_path": "<file_path>",
      "sheet": "<sheet>",
      "column": "<column>",
      "count": "<count>"
    },
    "name": "delete_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYesNumber of columns to delete
sheetYesSheet name or 1-based index
columnYesFirst column to delete (e.g. 'B')
file_pathYesAbsolute path to the .xlsx file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key side effect that remaining columns shift left. It does not say the deletion is irreversible, whether formulas/formatting in shifted columns are preserved, or what happens if count exceeds the remaining columns.

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 short sentences, zero waste, with the core action front-loaded and the side effect immediately following. Nothing is padded or redundant.

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 four-parameter destructive tool with no annotations and no output schema, the description covers the action and its main consequence. Missing edge-case behavior (count exceeding available columns, formula adjustment) is a gap but not a blocker for correct invocation.

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 all four parameters, including that 'column' is a letter like 'B' and 'count' is the number to delete. The description adds only the vague phrase 'at the specified position', which adds no meaning beyond the schema and slightly risks implying an index-based column argument.

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 columns') and adds the outcome ('Remaining columns shift left'). It is clearly distinct from read/format siblings, though it never names delete_rows or insert_columns as related operations.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as delete_rows for row-oriented deletion or insert_columns for the inverse operation. The agent must infer context 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.