Skip to main content
Glama
taylorwilsdon

Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

Modify Sheet Values

modify_sheet_values
Destructive

Write, update, or clear cell values in a specific Google Sheets range by providing the spreadsheet ID and range.

Instructions

Modifies values in a specific range of a Google Sheet - can write, update, or clear values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valuesNo2D array of values to write/update. Can be a JSON string or Python list. Required unless clear_values=True.
range_nameYesThe range to modify (e.g., "Sheet1!A1:D10", "A1:D10"). Required.
clear_valuesNoIf True, clears the range instead of writing values. Defaults to False.
spreadsheet_idYesThe ID of the spreadsheet. Required.
user_google_emailYesThe user's Google email address. Required.
value_input_optionNoHow to interpret input values ("RAW" or "USER_ENTERED"). Defaults to "USER_ENTERED".USER_ENTERED

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.28.0
    • changedInput schema / properties / values / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "type": "array"
      +  }
      +]
  2. Changed18 schema fields changedv1.0.1
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / clear_values / description
      Added value: +"If True, clears the range instead of writing values. Defaults to False."
    • removedInput schema / properties / clear_values / title
      Removed value: -"Clear Values"
    • addedInput schema / properties / range_name / description
      Added value: +"The range to modify (e.g., \"Sheet1!A1:D10\", \"A1:D10\"). Required."
    • removedInput schema / properties / range_name / title
      Removed value: -"Range Name"
    • removedInput schema / properties / service
      Removed value: -{
      -  "title": "service",
      -  "type": "string"
      -}
    • addedInput schema / properties / spreadsheet_id / description
      Added value: +"The ID of the spreadsheet. Required."
    • removedInput schema / properties / spreadsheet_id / title
      Removed value: -"Spreadsheet Id"
    • addedInput schema / properties / user_google_email / description
      Added value: +"The user's Google email address. Required."
    • removedInput schema / properties / user_google_email / title
      Removed value: -"User Google Email"
    • addedInput schema / properties / value_input_option / description
      Added value: +"How to interpret input values (\"RAW\" or \"USER_ENTERED\"). Defaults to \"USER_ENTERED\"."
    • removedInput schema / properties / value_input_option / title
      Removed value: -"Value Input Option"
    • changedInput schema / properties / values / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / values / description
      Added value: +"2D array of values to write/update. Can be a JSON string or Python list. Required unless clear_values=True."
    • removedInput schema / properties / values / title
      Removed value: -"Values"
    • changedInput schema / required
      Previous value: -[
      -  "service",
      -  "user_google_email",
      -  "spreadsheet_id",
      -  "range_name"
      -]New value: +[
      +  "user_google_email",
      +  "spreadsheet_id",
      +  "range_name"
      +]
    • removedInput schema / title
      Removed value: -"modify_sheet_valuesArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "type": "object",
      +  "x-fastmcp-wrap-result": true
      +}
  3. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is covered. The description adds the specific 'clear values' behavior, which gives concrete meaning to the destructive hint. It doesn't warn that writing overwrites existing cell content in the range, but since the annotations carry the mutation/destruction burden, the description does not seriously underdeliver here.

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 17-word sentence that front-loads the main action ('Modifies values in a specific range of a Google Sheet') and completes with an efficient enumeration of modes. Zero filler; every part of the sentence earns its place.

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?

Given an existing output schema, full parameter coverage in the schema, and annotations that disclose the destructive write profile, the description is nearly complete for an agent to call the tool correctly. The only gap is an explicit statement that writing overwrites existing values in the target range, though 'write/update' strongly implies this. This is a minor omission, not a blocking one.

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% — all 6 parameters (values, range_name, clear_values, spreadsheet_id, user_google_email, value_input_option) have their own descriptions. The tool description adds no parameter-level detail, but none is needed because the schema already carries the semantic burden, which matches the baseline-3 rule.

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 states a specific verb ('Modifies') and a specific resource ('values in a specific range of a Google Sheet'), then enumerates the modes 'write, update, or clear values.' This distinguishes it from the read-only sibling read_sheet_values by its action semantics. However, no sibling is explicitly named or contrasted, so it stops short of a 5.

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?

The three modes (write, update, clear) imply when the tool should be used, and an agent can infer it is the write counterpart to read_sheet_values. But there is no explicit when-to-use guidance, no exclusion like 'for reading use read_sheet_values instead,' and no mention of prerequisites such as the target sheet/tab needing to exist.

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