Skip to main content
Glama

wps_et_format_range

Format a cell range in Excel by setting bold, font, size, color, alignment, and column width. Accepts hex colors in #RRGGBB format.

Instructions

格式化区域:加粗、字号、字体、字体色、背景色、对齐、列宽。颜色按日常的 #RRGGBB 书写(如 #2F5496),addin 会自动转 Excel 的 BGR 字节序,无需关心底层。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boldNo是否加粗
alignNo对齐
rangeYes区域,如 A1:D1 或 A:A
font_nameNo字体名,如 PingFang SC
font_sizeNo字号
fill_colorNo背景色,十六进制 #RRGGBB,如 #FFF2CC
font_colorNo字体颜色,十六进制 #RRGGBB,如 #FF0000
column_widthNo列宽
Install Server

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the color format conversion (#RRGGBB to BGR) and promises no need to handle the conversion. However, it does not clarify whether formatting is replaced or additive, whether it clears unspecified formatting properties, or how it behaves with merged cells or partial ranges. The disclosure is helpful but incomplete.

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: two sentences in Chinese, listing the key formatting options and the color conversion note. It is front-loaded with the purpose. A slightly more structured breakdown (e.g., grouping parameters) could improve readability, but overall it is efficient.

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?

Given 8 parameters and no output schema, the description adequately lists the formatting capabilities. However, it lacks behavioral context (e.g., does it reset other formatting? what is the return value?), and does not mention edge cases or limitations. It is minimally complete for a utility tool but leaves gaps.

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

Parameters3/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by summarizing the set of parameters and explaining the color conversion behavior, which is not in the schema. However, it does not add detailed semantics beyond what the schema already provides for each parameter.

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 'format range' and lists the specific formatting attributes (bold, font size, font name, font color, background color, alignment, column width). This distinguishes it from sibling tools like wps_et_write_range (data writing) or wps_et_set_conditional_format (conditional formatting), though it does not explicitly name alternatives.

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 versus other range-related tools (e.g., wps_et_write_range, wps_et_clear_range, wps_et_set_conditional_format). It does not state prerequisites, typical use cases, or when to avoid this tool.

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