Skip to main content
Glama

add_conditional_format

Add a conditional formatting rule to a Google Sheets range using condition types like NUMBER_GREATER, TEXT_CONTAINS, or CUSTOM_FORMULA, with optional formatting changes.

Instructions

Add a boolean conditional-format rule to an A1 range.

condition_type is a Sheets ConditionType such as NUMBER_GREATER, NUMBER_LESS, NUMBER_BETWEEN, TEXT_CONTAINS, TEXT_EQ, CUSTOM_FORMULA, BLANK, NOT_BLANK. values supplies the comparison operands (e.g. ["100"] or ["10","20"]; for CUSTOM_FORMULA a single ["=$A1>5"]). The format applies when the condition is true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boldNo
rangeYes
valuesNo
text_colorNo
condition_typeYes
spreadsheet_idYes
background_colorNo
Behavior2/5

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

With no annotations, the description must disclose behaviors. It states the format applies when true but omits side effects (e.g., overwriting existing rules), parameter effects (bold, colors), and idempotency. Minimal behavioral disclosure beyond obvious.

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?

Two-sentence description is front-loaded with purpose, then explains key parameters. Concise with no wasted words. Could use more structure (e.g., list) but effective.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters, no annotations, and no output schema, the description is incomplete. Missing parameter explanations, return value, error conditions, and sibling differentiation. Does not fully equip an agent to invoke correctly.

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

Parameters2/5

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

Schema coverage is 0%, so description must compensate. It explains condition_type and values well (2 of 7 params), but ignores bold, range, text_color, spreadsheet_id, background_color. Only 28% of parameters are meaningfully described.

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 adds a conditional-format rule to an A1 range, specifying verb and resource. However, it does not explicitly differentiate from sibling tools like update_conditional_format, which lowers the score from 5 to 4.

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 vs alternatives, no prerequisites (e.g., spreadsheet must exist), and no exclusions. It only explains condition types without usage context.

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/richmcpharlin/google-sheets-mcp'

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