Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

update_conditional_formatting

Modify conditional formatting rules in Google Sheets spreadsheets to change cell appearance based on data conditions, updating colors, ranges, or criteria for existing rules.

Instructions

Updates an existing conditional formatting rule by index on a sheet.

Args: user_google_email (str): The user's Google email address. Required. spreadsheet_id (str): The ID of the spreadsheet. Required. range_name (Optional[str]): A1-style range to apply the updated rule (optionally with sheet name). If omitted, existing ranges are preserved. rule_index (int): Index of the rule to update (0-based). condition_type (Optional[str]): Sheets condition type. If omitted, the existing rule's type is preserved. condition_values (Optional[Union[str, List[Union[str, int, float]]]]): Values for the condition. background_color (Optional[str]): Hex background color when condition matches. text_color (Optional[str]): Hex text color when condition matches. sheet_name (Optional[str]): Sheet name to locate the rule when range_name is omitted. Defaults to first sheet. gradient_points (Optional[Union[str, List[dict]]]): If provided, updates the rule to a gradient color scale using these points.

Returns: str: Confirmation of the updated rule and the current rule state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
spreadsheet_idYes
rule_indexYes
range_nameNo
condition_typeNo
condition_valuesNo
background_colorNo
text_colorNo
sheet_nameNo
gradient_pointsNo

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. While it mentions that omitting certain parameters preserves existing values and describes the return value, it doesn't address important behavioral aspects like whether this requires specific permissions, whether changes are reversible, potential rate limits, or error conditions. The description provides basic operational context but lacks comprehensive behavioral transparency for a mutation tool.

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 with a clear purpose statement followed by detailed parameter explanations and return value information. While comprehensive, it's appropriately sized for a tool with 10 parameters. The information is front-loaded with the core purpose, though the parameter details are extensive but necessary given the complexity.

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 mutation tool with 10 parameters, 0% schema description coverage, no annotations, but with an output schema, the description provides good completeness. It explains the tool's purpose, detailed parameter semantics, and mentions the return value. The main gap is lack of behavioral context around permissions, reversibility, and error handling, but the parameter coverage is excellent and the output schema handles return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and 10 parameters (7 optional), the description provides excellent parameter semantics. It clearly explains what each parameter does, including specific details like 'A1-style range', '0-based index', 'Hex background color', 'Sheets condition type', and how omitted parameters preserve existing values. This fully compensates for the lack of schema descriptions.

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 clearly states the specific action ('Updates an existing conditional formatting rule by index on a sheet'), identifies the resource (conditional formatting rule on a sheet), and distinguishes it from sibling tools like 'add_conditional_formatting' and 'delete_conditional_formatting' by specifying it updates existing rules rather than creating or deleting them.

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 description implies usage by specifying it updates existing rules by index, which suggests it should be used when you have an existing rule to modify rather than creating a new one. However, it doesn't explicitly state when to use this versus alternatives like 'add_conditional_formatting' or provide any exclusion criteria or prerequisites beyond the required parameters.

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