Skip to main content
Glama
Starbavk
by Starbavk

format_excel_cells

Apply formatting to Excel cells in .xlsx files: set bold, font size, color, background, alignment, and borders for a specified cell range.

Instructions

Apply formatting to Excel cells.

Args: path: Path to the .xlsx file sheet_name: Sheet name cell_range: Cell range (e.g., 'A1:C3') bold: Bold text font_size: Font size in points font_color: Hex color (e.g., 'FF0000') bg_color: Background hex color alignment: left, center, right border: Add thin border

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boldNo
pathYes
borderNo
bg_colorNo
alignmentNo
font_sizeNo
cell_rangeYes
font_colorNo
sheet_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses neither that this modifies the file in-place, whether existing formatting is overwritten, whether the sheet must already exist, nor what the tool returns. The action 'Apply' implies mutation but omits side-effect details.

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 compact and front-loaded with a single purpose sentence followed by a concise argument list. Every line adds information without filler. It is slightly repetitive because the parameters are essentially restated from the schema, but the added context for each parameter justifies its presence.

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?

For a tool with 9 parameters, no annotations, and no output schema, the description is thin on behavioral context. It documents what each parameter is but not the expected behavior, error conditions, file mutation semantics, or return value. An agent could invoke it with correct parameter values but would not know what to expect as a result or side effect.

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 0%, so the description must compensate, and it does meaningfully. It adds value by explaining path meaning, giving a cell range example, specifying font size units, identifying hex color format, and enumerating alignment choices. It falls short of a 5 because defaults and optionality are not clarified beyond the schema.

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 states a specific verb and resource: 'Apply formatting to Excel cells.' This clearly distinguishes the tool from siblings like read_excel_workbook, write_excel_data, add_excel_formula, and add_excel_chart. It could be slightly stronger by explicitly noting it operates on an existing workbook, but the meaning is clear.

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

Usage Guidelines3/5

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

Usage is implied by the word 'formatting'—an agent can infer this is for visual style changes rather than data writes or formulas. However, there is no explicit guidance on when to choose this over write_excel_data or add_excel_chart, nor any exclusions or alternatives mentioned.

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