Skip to main content
Glama

format_cells

Apply formatting to Excel cells, including font styles, colors, alignment, borders, and number formats, for both live workbooks and .xlsx files without Excel.

Instructions

Apply formatting to cells. Use "workbook" for live Excel, or "path" for a .xlsx file on disk (no Excel needed, preserves images/charts). Options: bold, italic, underline, fontSize, fontName, fontColor, backgroundColor, textAlign (left/center/right), verticalAlign (top/middle/bottom), numberFormat, wrapText, borders ({top/bottom/left/right/inside/outside: {style, color}}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workbookNoOpen workbook name (live Excel)
pathNoFile path to .xlsx (no Excel needed)
rangeYesCell range (e.g. "A1:C3")
formatYesFormatting options
sheetNoSheet name (default: active sheet)

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/kousunh/Excel-mcp-server'

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