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

insert_columns

Insert empty columns at a specified position in an Excel sheet, shifting existing columns right to make room for new data.

Instructions

Insert empty columns at the specified position. Existing columns shift right.

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": "insert_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYesNumber of columns to insert
sheetYesSheet name or 1-based index
columnYesColumn letter to insert before (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.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does disclose the key side effect (existing columns shift right), but says nothing about whether inserted columns inherit formatting from the neighbor, whether formulas/references adjust, whether the file is rewritten in place, or what is returned. For a mutation with zero annotation coverage this is a substantial gap.

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, front-loaded with the action and followed by the consequence. No filler, no redundancy.

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?

All four required parameters are documented in the schema and there is no output schema to explain. However, for a write operation with no annotations, the description should at minimum note the in-place modification and any formatting-inheritance behavior; the shift-right note alone is thin.

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 coverage is 100%, and the schema already spells out that 'column' is the letter to insert before and that 'sheet' accepts a name or 1-based index. The description's "at the specified position" echoes rather than extends that, so 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 ("Insert empty columns") plus the positional effect ("at the specified position"). The noun 'columns' naturally separates it from insert_rows/delete_columns, but the description never names an alternative, so differentiation is only implicit.

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 mention of prerequisites (e.g., the sheet must exist, the file must be an .xlsx), and no pointer to insert_rows for the row equivalent. The agent is left to infer that this is the correct tool whenever it needs new columns.

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