Skip to main content
Glama

Insert columns

insert_columns
Destructive

Insert one or more blank columns into a sheet, shifting existing columns right 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>",
      "beforeColumn": "<beforeColumn>",
      "count": "<count>"
    },
    "name": "insert_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYes
sheetNameYes
workbookIdYes
beforeColumnYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent, but the description adds real behavior beyond them: columns shift right, every affected formula reference is rewritten automatically, the operation is restricted to Excel Online mode, and structure changes invalidate prior analysis. Those are exactly the consequences an agent needs before mutating a workbook.

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 operation and its main side effect, with the mode restriction and the follow-up advice each earning their place. 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?

For a destructive structural mutation the behavioral picture is strong, but four undocumented required parameters and no output schema leave the calling contract underspecified. An agent still has to guess at the anchor semantics of beforeColumn from the pattern alone.

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 it. It never explains that 'beforeColumn' is the anchor column the new columns are placed ahead of, nor that 'count' defaults to 1 and caps at 500; only 'count' is obliquely hinted by 'one or more blank columns'.

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 one or more blank columns into a sheet') plus the immediate effect on existing data. The column-vs-row distinction from siblings like insert_rows/delete_columns is inferable from the resource itself, but no sibling is named or contrasted.

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?

Gives one hard precondition ('Only works on workbooks in Excel Online mode') and a post-change recommendation to re-run analysis, which is useful context. It never states when to choose this over insert_rows or delete_columns, so usage selection is only implied by the resource name.

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