Skip to main content
Glama

wps_et_set_conditional_format

Apply conditional formatting to cell ranges: highlight values by comparison, color scales, or data bars. Clear existing formatting when needed.

Instructions

设置条件格式。type=cell_value 按比较运算符高亮(operator+value1[+value2]+fill_color/font_color);type=color_scale 三色刻度;type=data_bar 数据条(可选 fill_color);type=clear 清除该区域全部条件格式。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo条件格式类型,默认 cell_value
rangeYes区域,如 A1:D10
sheetNo工作表名(可选,默认当前活动表)
value1No比较值1
value2No比较值2(operator=between/not_between 时必填)
operatorNotype=cell_value 时的比较运算符,默认 greater
fill_colorNo填充色 #RRGGBB(可选)
font_colorNo字体色 #RRGGBB(可选,仅 cell_value)
Install Server

TDQS

A4.4/5.0
Behavior4/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. It effectively conveys the tool's mutation behavior (modifying cell formatting) and covers all four operational modes, though it could add notes on scope (e.g., what happens to overlapping formats) or performance implications on large ranges. The description is transparent enough for safe use.

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?

The description is a single, well-structured sentence with type-specific details separated by semicolons. It front-loads the tool's purpose and efficiently conveys all operational modes and parameter relationships without repetition or wasted words.

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 moderate complexity (8 parameters, 4 modes), the description covers all types and key parameter combinations. The high schema coverage (100%) and lack of output schema reduce the need for return value documentation. It could add a note about the clear type's effect on existing formats or default values, but overall it is sufficiently complete for effective agent use.

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 description coverage is 100%, so the baseline is 3. The description adds significant value beyond the schema by explaining how parameters combine for each type (e.g., operator+value1[+value2]+fill_color/font_color for cell_value). This provides crucial semantic context that the schema's individual descriptions lack, particularly for conditional logic and color construction.

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 sets conditional formatting for WPS spreadsheets. It lists the four types (cell_value, color_scale, data_bar, clear) with specific formatting details for each, differentiating itself from sibling tools like wps_et_format_range and wps_et_clear_range, which handle general formatting or clearing without the conditional logic.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context on when to use each type (e.g., cell_value for comparisons, clear for removal). However, it does not explicitly state when not to use this tool or mention alternatives among siblings, though being the only conditional formatting tool in the list, this is less critical. The guidance is practical and sufficient for a well-informed agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/Antares422/draftly-wps'

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