Skip to main content
Glama

drive_sheets_append

Append rows to a Google Sheet range without overwriting existing cells. Preview with dry_run before performing real writes.

Instructions

Append rows after the table in a Google Sheet range; use drive_sheets_write to overwrite existing cells. Mirrors omni-dev drive sheets append. Example: spreadsheet_id, range:"A1:B2", values:[["a","b"]], dry_run:true. dry_run defaults to false. Dry-run first: previews need no lease. Real writes require an operator allow rule and a lease unless require_lease:false. Acquire with drive_lease_acquire. A lease permits repeated writes to one file until expiry. refused-lease-stale needs a fresh backup: release with omni-dev drive lease release or wait for expiry before acquiring (acquire reuses stale live tokens too). Cancellation/timeout is not rollback; inspect state before retrying, especially append. Output is complete tagged YAML; refusals/failures set is_error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputNoInterpretation: user-entered (default; parses formulas/dates/numbers) or raw (literal text).
leaseNoToken from drive_lease_acquire or omni-dev drive lease acquire. Not needed for dry_run or operator require_lease:false rules; any supplied token is still validated.
rangeNoA1 range, e.g. A1:B2 or Sheet1!A1:B2. Omit with sheet to target the tab.
sheetNoTab title, e.g. Sheet1. Supplies a bare range prefix; conflicts with a range already naming a tab.
valuesNoInline array of rows, e.g. `[["name", "score"], ["Ada", "42"]]`. Exactly one of values or values_path is required.
accountNoSelects a named Drive account instead of the ambient `--account`/`OMNI_DEV_DRIVE_ACCOUNT` resolution — e.g. `work`. Omit to use the resolved default account (or the legacy single-account credentials, if no named accounts are configured). Call `drive_account_list` to discover configured names.
dry_runNoPreview without mutating or requiring a lease. Default false; preview first.
values_pathNoLocal UTF-8 CSV/TSV/JSON file; mutually exclusive with values. Stdin (-) is unsupported.
values_formatNoFile format: auto (default; infer extension), csv, tsv, json. Only applies to values_path.
spreadsheet_idYesSpreadsheet id from /d/<ID>/ in a Sheets URL, e.g. 1a2B3c4D. Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.45.0

TDQS

A4.8/5.0
Behavior5/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: dry_run defaults to false and previews need no lease, real writes need an operator allow rule and a lease, refused-lease-stale requires a fresh backup and can be cleared via omni-dev drive lease release, and cancellation/timeout is explicitly not rollback. It also states the output is complete tagged YAML with is_error on refusal.

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?

Front-loaded with purpose and the sibling routing, then behavior. The lease/stale-token passage is dense and somewhat sprawling, but each clause conveys actionable operational detail that no annotation supplies, so the length is largely justified.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description covers the safety model (lease, allow rule, dry run), failure semantics (stale lease, cancellation not rollback), and return shape (tagged YAML, is_error). Nothing an agent needs to call it safely is missing.

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 100%, so the schema already documents all ten parameters and the baseline is 3. The description adds a concrete invocation example (spreadsheet_id, range, values, dry_run) showing how parameters combine, which is modest but real added value; the dry_run default it restates is already in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (append) and resource (rows after the table in a Google Sheet range) and explicitly distinguishes itself from the sibling drive_sheets_write, which overwrites. An agent can select this over drive_sheets_write/clear/read without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the alternative and the condition that selects it ('use drive_sheets_write to overwrite existing cells'), prescribes a dry-run-first workflow, and lays out the lease acquisition path with drive_lease_acquire plus the require_lease:false exception. When-to-use and when-not are both explicit.

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