Skip to main content
Glama

add_columns

Destructive

Adds a specified number of columns to a Google Sheets sheet, optionally from a chosen column index, so you can insert new fields without manual sheet editing.

Instructions

Add columns to a sheet in a Google Spreadsheet.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet count: Number of columns to add start_column: 0-based column index to start adding. If not provided, adds at the beginning.

Returns: Result of the operation. Returns {"error": ...} without calling the Sheets API if start_column is negative or count isn't positive.

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>",
      "count": "<count>"
    },
    "name": "add_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYes
sheetYes
start_columnNo
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, and the description adds real behavioral context by disclosing the pre-flight validation: a negative start_column or non-positive count returns {"error": ...} without calling the Sheets API. It does not state whether existing data shifts right or can be displaced, which is the main destructive consequence an agent should know.

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 a single sentence followed by a clean Args/Returns structure, with the 'found in the URL' hint earning its place. Slightly boilerplate phrasing around 'Result of the operation' but no padding.

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 parameters, the default behavior, and the error short-circuit are covered, and an output schema exists so return values needn't be spelled out. However, for a tool annotated destructive, it omits the effect on existing column data, which is the key unknown for correct invocation.

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?

Schema description coverage is 0%, so the description carries the full burden and largely does: it explains spreadsheet_id's origin (the URL), sheet, count, and that start_column is a 0-based index with a documented default. The only gap is that 'count' has no stated upper bound or behavior on very large values.

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?

The first line states a specific verb and resource ('Add columns to a sheet in a Google Spreadsheet') and the params make the scope concrete. It does not explicitly contrast itself with siblings such as add_rows or delete_columns, so the agent must infer the boundary.

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?

Usage is implied by the purpose plus the note that omitting start_column appends-at-beginning, which tells the agent how to invoke it in the common case. There is no explicit when-to-use / when-not guidance and no pointer to alternatives for related column operations.

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