Skip to main content
Glama

insert_table_column

Destructive

Insert a column into an existing Google Docs table, positioning it left or right of a specified column to update document structure.

Instructions

Insert a column into an existing table in a Google Doc.

Use get_doc_structure to find the table's startIndex and the column_index to insert relative to.

Args: doc_id: The Google Doc file ID. table_start_index: The startIndex of the table (from get_doc_structure). column_index: The column to insert relative to. insert_right: If True (default), insert to the right of the specified column. If False, insert to the left.

Returns: Confirmation with docId, table_start_index, and the column_index used.

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": {
      "doc_id": "<doc_id>",
      "table_start_index": "<table_start_index>",
      "column_index": "<column_index>"
    },
    "name": "insert_table_column"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idYes
column_indexYes
insert_rightNo
table_start_indexYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, so the safety profile is covered structurally. The description adds the get_doc_structure dependency and the default-direction behavior of insert_right, but never says what the destructive effect actually is (existing columns shift right/left, cell contents move or are truncated) — the one behavioral trait an agent most needs for a 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?

Purpose is front-loaded in a single sentence, followed by a workflow hint and a scannable Args block. Sentence count is minimal with no filler, though the Returns section mildly duplicates the existing output schema.

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?

With an output schema present and destructiveHint supplied by annotations, the description needn't restate return values or safety. What remains missing is the practical consequence of the mutation on existing table content and any index-basis convention, which matters for a destructive structural edit.

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 coverage is 0%, so the description carries the full burden — and it does document all four parameters, including the meaning and default of insert_right and the source of table_start_index. The remaining gap is that column_index is described somewhat circularly ('the column to insert relative to') without stating zero- versus one-based indexing.

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 sentence gives a precise verb+resource (insert a column into an existing table in a Google Doc), which cleanly separates it from row, cell, and delete siblings. It stops short of naming or contrasting those alternatives explicitly, so it is clear but not maximally differentiating.

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 states the prerequisite workflow clearly: call get_doc_structure first to obtain the table startIndex and the reference column index. It gives no guidance on when to choose this over delete_table_column or insert_table_row, and no conditions under which the tool should not be used.

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