Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by akilja24

delete_conditional_formatting

Deletes a Google Sheets conditional formatting rule by zero-based index from a specified sheet, optionally named, and returns deletion confirmation plus the current rule state.

Instructions

Deletes 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. rule_index (int): Index of the rule to delete (0-based). sheet_name (Optional[str]): Name of the sheet that contains the rule. Defaults to the first sheet if not provided.

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

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": {
      "user_google_email": "<user_google_email>",
      "spreadsheet_id": "<spreadsheet_id>",
      "rule_index": "<rule_index>"
    },
    "name": "delete_conditional_formatting"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_indexYes
sheet_nameNo
spreadsheet_idYes
user_google_emailYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.13.1

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states that a rule is deleted and that sheet_name defaults to the first sheet, but it does not mention irreversibility, required permissions or OAuth scopes, failure behavior for an invalid index, or other destructive-operation characteristics.

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 front-loaded with the core action and then uses structured Args and Returns sections. It is generally efficient, though the Returns section is somewhat redundant because an output schema exists.

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?

The tool is simple and the output schema covers the return value, so the description does not need to explain return structure in depth. However, for a destructive mutation with no annotations, it should provide more completeness around permissions, irreversibility, and failure behavior.

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?

Schema description coverage is 0%, so the description must document the parameters itself. It successfully defines all four parameters, marks user_google_email, spreadsheet_id, and rule_index as required, clarifies that rule_index is 0-based, and explains that sheet_name defaults to the first sheet.

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 first sentence gives a specific verb, resource, and scope: deleting an existing conditional formatting rule by index on a sheet. It is clear enough for an agent to identify the operation, though it does not explicitly contrast with add_conditional_formatting or update_conditional_formatting.

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 gives no explicit when-to-use guidance, prerequisites, or alternatives. It implies deletion but does not say when to choose this over update_conditional_formatting or what conditions must hold, such as a valid existing index.

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