Skip to main content
Glama

insertTable

Inserts an empty table with a set number of rows and columns at a chosen character index in a Google Docs document, so you can add structured grids to a specific spot.

Instructions

Inserts an empty table with the specified number of rows and columns at a character index in the document.

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": {
      "documentId": "<documentId>",
      "rows": "<rows>",
      "columns": "<columns>",
      "index": "<index>"
    },
    "name": "insertTable"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesNumber of rows for the new table.
indexYes1-based character index within the document body. Use readDocument with format='index' to inspect indices.
tabIdNoThe ID of the specific tab to insert into. Use listDocumentTabs to get tab IDs. If not specified, inserts into the first tab.
columnsYesNumber of columns for the new table.
documentIdYesThe document ID — the long string between /d/ and /edit in a Google Docs URL.
readHandleNoCapability returned by a previous readDocument call for this document (and tab). Required over HTTP on the 2026-07-28 runtime: it authorizes the write and pins it to the revision that read saw. Omit it on stdio to use that connection's most recent read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

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 states the operation is an insert but says nothing about side effects such as shifting existing body content, permission requirements, or that the write is rejected if the document was not read first (that auth detail lives only in the readHandle parameter doc).

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?

A single front-loaded sentence with the resource, cardinality inputs, and placement semantics; no filler or 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?

For a six-parameter mutation with no annotations and no output schema, the description covers the action but omits the return value (e.g., whether a table ID or index is returned) and behavioral prerequisites. The rich schema compensates for parameter gaps, leaving the definition minimally adequate.

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%, with rows, columns, index, documentId, tabId, and readHandle all documented in-schema including index-inspection and tab-defaulting hints. The description adds nothing beyond the schema, which is acceptable at full coverage.

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 description gives a specific verb (Inserts) and resource (an empty table) plus its placement mechanism (character index in the document). The word 'empty' implicitly distinguishes it from insertTableWithData, but no sibling is named, so the differentiation is left to inference.

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 guidance on when to choose this over insertTableWithData or createTable, nor any prerequisite note. The agent must infer from the single word 'empty' that this creates structure without data.

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