Skip to main content
Glama
gworkspace-mcp
by ctschak

Insert a table

docs_table

Insert a table into a Google Doc and optionally fill its cells, using dry-run to preview requests before applying.

Instructions

Insert a table, optionally populating its cells. Populating costs a second round trip, because cell indices do not exist until the table does. Supports dryRun.

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": {
      "document": "<document>",
      "rows": "<rows>",
      "columns": "<columns>"
    },
    "name": "docs_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNoTab id or title, for documents with several tabs. Reads default to the first tab; writes to a multi-tab document REQUIRE this rather than guessing. Get ids from docs_describe.
rowsYes
indexNoWhere to insert. Omit to append at the end of the body.
dryRunNoReturn the exact requests that would be sent, in the order they would be applied, and send nothing.
valuesNoCell text, row-major. Written in a second pass after the table exists, since cell indices are not known until then.
accountNoGoogle account to act as. Optional when one is authorised or a default is set.
columnsYes
documentYesDocument URL or file id. Both accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose one non-obvious behavior: values are written in a second pass because cell indices do not exist until the table is created. It also flags dryRun support. It omits permission/auth requirements, whether insertion pushes existing content down, and what the response contains, which matters for a mutation tool with zero annotation coverage.

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?

Two tight sentences with the core action front-loaded and the cost caveat immediately after it. "Supports dryRun" is slightly redundant since the schema already explains dryRun in detail, but it is only four words.

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 an 8-parameter mutation tool with no annotations and no output schema, the definition covers the trickiest aspect (two-pass population) but leaves the agent without permission requirements, return-value expectations, or interpretation of the bare rows/columns parameters. Adequate, not complete.

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 75%, so the baseline is 3. The description reinforces the semantics of values (two-pass write) and dryRun, but rows and columns carry no schema descriptions and get no explanation here, and index/tab semantics are left entirely to the schema.

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 a table") plus the optional cell-population capability, which is enough to separate it from a generic insert or a raw batch-update call. It stops short of naming the sibling it replaces (e.g. docs_insert or docs_batch_update_raw), so the differentiation is inferential rather than explicit.

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 a real decision cue for the optional path: populating cells costs an extra round trip, so an agent can choose to skip values and fill them later. There is no guidance on when to prefer this over docs_insert or docs_batch_update_raw, and no stated prerequisites such as required scopes or tab requirements for multi-tab documents.

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