Skip to main content
Glama

xlwings Excel MCP Server

by hyunjae-labs

format_range

Apply custom formatting to Excel cell ranges, including font styles, colors, borders, alignment, and number formats. Add conditional formatting, merge cells, or protect ranges to enhance workbook presentation and functionality.

Instructions

Apply formatting to a range of cells.

Input Schema

NameRequiredDescriptionDefault
alignmentNo
bg_colorNo
boldNo
border_colorNo
border_styleNo
conditional_formatNo
end_cellNo
filepathYes
font_colorNo
font_sizeNo
italicNo
merge_cellsNo
number_formatNo
protectionNo
sheet_nameYes
start_cellYes
underlineNo
wrap_textNo

Input Schema (JSON Schema)

{ "properties": { "alignment": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Alignment" }, "bg_color": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Bg Color" }, "bold": { "default": false, "title": "Bold", "type": "boolean" }, "border_color": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Border Color" }, "border_style": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Border Style" }, "conditional_format": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Conditional Format" }, "end_cell": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "End Cell" }, "filepath": { "title": "Filepath", "type": "string" }, "font_color": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Font Color" }, "font_size": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Font Size" }, "italic": { "default": false, "title": "Italic", "type": "boolean" }, "merge_cells": { "default": false, "title": "Merge Cells", "type": "boolean" }, "number_format": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Number Format" }, "protection": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Protection" }, "sheet_name": { "title": "Sheet Name", "type": "string" }, "start_cell": { "title": "Start Cell", "type": "string" }, "underline": { "default": false, "title": "Underline", "type": "boolean" }, "wrap_text": { "default": false, "title": "Wrap Text", "type": "boolean" } }, "required": [ "filepath", "sheet_name", "start_cell" ], "title": "format_rangeArguments", "type": "object" }

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/hyunjae-labs/xlwings-mcp-server'

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