Skip to main content
Glama

drive_update_range

Overwrite a range of a Google Sheet in the registered Google Drive folders, such as 'Sheet1'!B2:C3. Values are entered as if typed. A tab that does not exist is added with create_tab. To add rows at the end use drive.append_rows.

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": {
      "file": "<file>",
      "range": "<range>",
      "values": "<values>"
    },
    "name": "drive_update_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesDrive id or pasted link of a Google Sheet.
rangeYesA1 range, e.g. 'Sheet1'!B2:C3.
valuesYesThe new values: a list of rows, each a list of cell values.
create_tabNoAdd the tab first when the range names one that does not exist. OMIT to refuse a missing tab (the answer lists the tabs); true adds it.
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / create_tab
      Added value: +{
      +  "description": "Add the tab first when the range names one that does not exist. OMIT to refuse a missing tab (the answer lists the tabs); true adds it.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already cover the safety profile (readOnlyHint=false, openWorldHint=false), so the description's job is to add context. It does: values are 'entered as if typed' (formulas and coercion behave like manual typing) and a missing tab is refused unless create_tab is set. The word 'Overwrite' implies prior cell contents are lost, which sits slightly oddly against destructiveHint=false, but in MCP terms overwriting cells rather than deleting a resource is a defensible classification.

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?

Three short sentences, front-loaded with the action and target, then example, then the two behavioral rules an agent needs. Every sentence carries a distinct fact and nothing is repeated from the schema or annotations.

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?

For a five-parameter write tool with no output schema, the description covers the action, the target format, missing-tab behavior, and the append alternative. The only gap is what the call returns on success (the missing-tab response is only hinted at inside the create_tab parameter description), which an agent may want to know.

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 earns above that by explaining that the 'values' payload is written as if manually typed, which is real semantic information beyond the schema's 'list of rows' wording. The remaining parameters (file, range, create_tab, in_workspace) are left entirely to the schema, which does document them well.

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?

The description uses a specific verb and resource, 'Overwrite a range of a Google Sheet,' and gives an A1-style example ('Sheet1'!B2:C3) so the agent knows exactly what target this tool expects. It also names drive.append_rows as the tool for the append case, so it is distinguishable from the nearest sibling without opening either schema.

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 gives one explicit routing rule: 'To add rows at the end use drive.append_rows,' which is exactly the confusion an agent is likely to have with an append sibling. It does not cover when to prefer drive_replace or drive_import over a range overwrite, so the guidance is clear but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.