Skip to main content
Glama
ruriazz
by ruriazz

set_cell_style

Apply custom formatting to a specified cell range in an Excel file, setting fonts, colors, alignment, borders, and number formats.

Instructions

Apply formatting to a range of cells.

Args: path: Path to the .xlsx file, or the name of a preloaded file. Omit if only one file is configured. sheet: Sheet name. cell_range: A1-style range, e.g. "A1:D1". style: Keys among: bold, italic, font_size, font_color (hex RGB, e.g. "FF0000"), bg_color (hex RGB), horizontal, vertical (alignment), border ("thin", "medium", "thick", ...), number_format (e.g. "#,##0.00").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
sheetYes
styleYes
cell_rangeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations, the description must cover behavioral implications. It does not state whether existing formatting is overwritten or merged, whether the file is automatically saved, or if special permissions are needed. This is a mutation tool and should clarify side effects and state changes.

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 concise: a one-sentence summary followed by a focused parameter list. No redundant information or padding. Each line adds value, and the structure is easy to scan.

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?

The description provides good parameter coverage but lacks behavioral context (e.g., save behavior, style replacement semantics). Since an output schema is present, return-value details are not required, but the absence of side-effect disclosure leaves the tool partially incomplete for a mutation operation.

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?

The description compensates for 0% schema coverage by explaining all parameters, especially the 'style' object with an enumerated list of valid keys (bold, italic, font_size, etc.) and the 'path' parameter's optional behavior. However, some values (e.g., allowed alignment strings) are left vague, so it does not fully exhaust the parameter semantics.

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 opens with 'Apply formatting to a range of cells', which uses a specific verb ('apply') and clear resource ('range of cells'). This clearly differentiates it from sibling tools like merge_cells, write_cells, or read_sheet.

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 is provided on when to use this tool versus alternatives. It does not mention, for example, that cell values should be written with write_cells, or any distinctions from formatting-related operations. The description only states what it does, not when it is appropriate.

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/ruriazz/xlsx-tools-mcp'

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