Skip to main content
Glama

drive_sheets_write

Write values to a Google Sheets range, overwriting existing cell content and dropping rich-text formatting. Preview changes with a dry run before mutating any data.

Instructions

Overwrite cell values in a Google Sheet, dropping rich-text runs; use drive_sheets_append to add table rows or drive_sheets_clear to empty values. Mirrors omni-dev drive sheets write. 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 delivers: it discloses that rich-text runs are dropped (a destructive side effect), the lease/operator-allow-rule authorization model, that dry_run defaults to false, that 'refused-lease-stale' needs a fresh backup, that cancellation/timeout is not rollback, and that output is tagged YAML with is_error on failure. This is unusually rich behavioral context.

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-loads the core action and alternatives, then packs examples, lease rules, and error handling. Every clause is actionable, but the lease/refusal detail runs long and reads as a dense single paragraph, which slightly hurts scanability.

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 10-parameter mutation tool with no annotations and no output schema, the description covers the safety profile, the lease lifecycle, failure modes, and the return format (tagged YAML, is_error on refusal). Nothing an agent needs to call it correctly appears to be 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 baseline is 3. The description adds a concrete worked example (spreadsheet_id, range, values, dry_run) and reiterates the dry_run default, which clarifies how the parameters combine in practice, though it adds little about the semantics of lease/input/values_path beyond 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?

Opens with a specific verb+resource+side effect: 'Overwrite cell values in a Google Sheet, dropping rich-text runs.' It immediately distinguishes itself from drive_sheets_append (add rows) and drive_sheets_clear (empty values), so an agent can route correctly 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?

Explicitly names the two alternatives and their conditions, tells the agent to dry-run first ('previews need no lease'), and explains when a lease is required and how to acquire it. When-to-use, when-not-to-use, and prerequisites are all present.

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