Skip to main content
Glama

apply_conditional_formatting

Add conditional formatting to a cell range using color scales, data bars, value-based conditions, or formulas to highlight data automatically.

Instructions

Add a conditional formatting rule to a range.

rule_type:

  • 'color_scale': gradient by value; colors = 2 or 3 hex/named colors (default red-yellow-green).

  • 'data_bar': in-cell bars; colors = [bar_color] (default blue).

  • 'cell_value': highlight cells matching operator (greaterThan, lessThan, equal, notEqual, between, notBetween, greaterThanOrEqual, lessThanOrEqual) against values (two values for between); uses fill_color/font_color.

  • 'formula': highlight where an Excel formula (relative to the range's top-left cell) is TRUE, e.g. 'ISBLANK(A2)'; uses fill_color/font_color.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeYes
colorsNo
valuesNo
formulaNo
operatorNo
rule_typeYes
fill_colorNolight_red
font_colorNo
session_idYes
Behavior3/5

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

No annotations exist, so the description carries full burden. It discloses behavior for each rule type (e.g., default colors, operator list) and required parameters. However, it does not address whether existing rules are overwritten or appended, side effects, or authentication needs. Thus it is adequate but not exhaustive.

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 concise with two paragraphs and bullet points for rule types. It front-loads the main action and then elaborates on parameters. Each sentence adds value, though a slight reduction in phrasing could improve conciseness.

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?

Given the tool's complexity (multiple rule types, 9 parameters) and no output schema, the description covers all rule types and their parameter dependencies. It lacks details on return values and error handling, but otherwise provides sufficient context for an agent to correctly invoke the tool.

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 explain all parameters. It does so comprehensively by detailing 'rule_type' options and associating parameters like 'colors', 'operator', 'values', 'formula', 'fill_color', 'font_color' with specific rule types. It also provides defaults and formatting notes (e.g., hex/named colors). This adds significant meaning beyond the bare schema.

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 tool adds a conditional formatting rule to a range, specifying verb 'add' and resource 'conditional formatting rule'. It further distinguishes from siblings like 'set_fill_color' and 'format_as_table' by detailing rule types (color_scale, data_bar, cell_value, formula), making the purpose precise and distinct.

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 such as 'set_fill_color' or 'set_font'. The description explains rule types but does not mention prerequisites, context for choosing conditional formatting over direct formatting, or when not to use this tool.

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/ShubhamDbug/Excel-MCP'

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