Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

modify_sheet_values

Update, write, or clear data in specific Google Sheets ranges to manage spreadsheet content securely within Google Workspace.

Instructions

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

Args: user_google_email (str): The user's Google email address. Required. spreadsheet_id (str): The ID of the spreadsheet. Required. range_name (str): The range to modify (e.g., "Sheet1!A1:D10", "A1:D10"). Required. values (Optional[Union[str, List[List[str]]]]): 2D array of values to write/update. Can be a JSON string or Python list. Required unless clear_values=True. value_input_option (str): How to interpret input values ("RAW" or "USER_ENTERED"). Defaults to "USER_ENTERED". clear_values (bool): If True, clears the range instead of writing values. Defaults to False.

Returns: str: Confirmation message of the successful modification operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
spreadsheet_idYes
range_nameYes
valuesNo
value_input_optionNoUSER_ENTERED
clear_valuesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the tool can 'write, update, or clear values' and returns a confirmation message, but lacks critical details: it doesn't specify required permissions (e.g., edit access to the sheet), whether changes are reversible, potential rate limits, or error conditions. For a mutation tool with zero annotation coverage, this is insufficient.

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?

The description is well-structured and appropriately sized. It starts with a clear purpose statement, followed by a parameter breakdown and return information. Each sentence adds value without redundancy. Minor improvements could include bullet points for parameters, but overall it's efficient and front-loaded.

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?

Given the tool's complexity (6 parameters, mutation operation) and lack of annotations, the description is moderately complete. It covers the purpose, parameters, and return value, and an output schema exists (though not shown), reducing the need to explain returns. However, it misses behavioral context (e.g., permissions, side effects) and usage guidelines, making it adequate but with clear gaps.

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 0%, so the description must compensate. It provides a brief explanation for each parameter (e.g., '2D array of values to write/update'), which adds meaning beyond the bare schema. However, it doesn't fully detail parameter interactions (e.g., how 'clear_values' affects 'values'), formats (e.g., examples for 'range_name'), or constraints (e.g., valid 'value_input_option' values beyond defaults), leaving gaps.

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 clearly states the tool's purpose: 'Modifies values in a specific range of a Google Sheet - can write, update, or clear values.' It specifies the verb ('modifies'), resource ('Google Sheet'), and scope ('specific range'), making the action clear. However, it doesn't explicitly differentiate from sibling tools like 'read_sheet_values' or 'format_sheet_range', which would be needed for a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'read_sheet_values' for reading data or 'format_sheet_range' for formatting, nor does it specify prerequisites (e.g., authentication, permissions) or use cases. This leaves the agent without context for tool selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/c0webster/hardened-google-workspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server