Skip to main content
Glama

Format Range

format_range

Apply formatting to a cell or range in an open Excel workbook, setting font, fill, number format, and alignment individually. Only specified properties are changed.

Instructions

Apply font, fill, number-format, and alignment to a cell or range.

Only arguments that are explicitly set are changed; everything else is left as-is.

Args: workbook: Workbook name or path (None = active workbook). sheet: Worksheet name (None = active sheet). range_address: A1-style address, e.g. "A1:C1". bold, italic, underline: Font style toggles. font_name: e.g. "Calibri". font_size: Point size. font_color: Hex RGB, e.g. "FF0000" (with or without leading '#'). fill_color: Hex RGB cell background color. number_format: Excel number format code, e.g. "$#,##0.00" or "0.0%". horizontal_align: One of "left", "center", "right", "general". wrap_text: Whether to wrap text within the cell.

Returns: JSON confirmation of the range formatted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boldNo
sheetNo
italicNo
workbookNo
font_nameNo
font_sizeNo
underlineNo
wrap_textNo
fill_colorNo
font_colorNo
number_formatNo
range_addressNoA1
horizontal_alignNo
Behavior4/5

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

The description adds meaningful behavioral details beyond the sparse annotations: only explicitly set arguments are changed, everything else is preserved, and a JSON confirmation is returned. It also documents how 'None' resolves to the active workbook/sheet and gives formatting syntax examples. It falls short of covering error behavior or side effects, but it carries the transparency burden well.

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 front-loaded with the core behavior, then terse Args entries, each contributing concrete value. The return line is minimal and useful. Despite covering 13 parameters, it remains readable and free of filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter tool with no output schema and no meaningful annotations, the description covers all inputs, the selective-application behavior, the address format, and the return type. This is enough for an agent to invoke the tool correctly without further inference.

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 carry the full parameter documentation burden. It does so comprehensively: every parameter is listed with its meaning, expected value type, and relevant examples such as 'FF0000', '$#,##0.00', and horizontal alignment options. This exceeds what the raw schema provides.

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 a precise verb-resource pair: 'Apply font, fill, number-format, and alignment to a cell or range.' This clearly distinguishes it from siblings like set_range_values, clear_range, and sort_range, which serve different purposes.

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?

The description clearly conveys that this tool is for formatting a range, but it does not explicitly state when to prefer it over alternatives or when not to use it. The usage context is implied by the formatting-specific language, but no exclusions or alternative routing are provided.

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/trustypangolin/excel-mcp-live'

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