Skip to main content
Glama

sheets_get_conditional_formatting

Read conditional formatting rules and alternating row/column colors from a Google Sheet. Formulas are normalized to English locale by default, with an option to retrieve raw formulas as returned by the API.

Instructions

Read conditional formatting rules and banded ranges (alternating row/column colors) for a sheet. CF formulas are normalized to English locale (semicolons → commas) by default. Each rule with a formula includes a "_formulaLocaleRaw" field with the original unmodified formula. Set normalizeFormulas:false to get raw formulas as returned by the API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sheetNameYesName of the sheet (tab) to inspect
spreadsheetIdYesThe ID of the spreadsheet (found in the URL after /d/)
normalizeFormulasNoDefault: true. Normalize formula separators to English locale (semicolons → commas). Each normalized rule includes "_formulaLocaleRaw" with the original formula. Set to false to get formulas exactly as returned by the Google Sheets API.
Behavior5/5

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

Discloses normalization behavior (English locale, semicolons to commas), the option to disable it, and the inclusion of the _formulaLocaleRaw field. Since no annotations are provided, the description fully covers behavioral context.

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 sentences, no redundant information. Key points are front-loaded (purpose first), and every sentence contributes unique value.

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?

Adequately covers the tool's functionality for a read operation with three parameters. Could mention that no output schema is provided, but the description implies the return type. Lacks mention of any limits or error conditions.

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%, but the description adds value by explaining the normalizeFormulas parameter's default behavior and its effect on formula output, going beyond the schema's simple type/description.

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 specifies reading conditional formatting rules and banded ranges, a specific verb-resource pair. It clearly distinguishes from sibling tools like sheets_add_conditional_formatting (write) and sheets_get_sheet_formatting (different focus).

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?

No guidance on when to use this tool versus alternatives (e.g., sheets_get_sheet_formatting) or when not to use it. The description is purely declarative.

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/freema/mcp-gsheets'

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