Skip to main content
Glama
taylorwilsdon

Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

Format Sheet Range

format_sheet_range

Apply formatting to a cell range in Google Sheets: set background and text colors, number formats, text wrapping, alignment, and font styling like bold or italic.

Instructions

Applies formatting to a range: colors, number formats, text wrapping, alignment, and text styling.

Colors accept hex strings (#RRGGBB). Number formats follow Sheets types (e.g., NUMBER, CURRENCY, DATE, PERCENT). If no sheet name is provided, the first sheet is used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boldNoWhether to apply bold formatting.
italicNoWhether to apply italic formatting.
font_sizeNoFont size in points.
range_nameYesA1-style range (optionally with sheet name). Required.
text_colorNoHex text color (e.g., "#000000").
wrap_strategyNoText wrap strategy - WRAP (wrap text within cell), CLIP (clip text at cell boundary), or OVERFLOW_CELL (allow text to overflow into adjacent empty cells).
spreadsheet_idYesThe ID of the spreadsheet. Required.
background_colorNoHex background color (e.g., "#FFEECC").
user_google_emailYesThe user's Google email address. Required.
number_format_typeNoSheets number format type (e.g., "DATE").
vertical_alignmentNoVertical text alignment - TOP, MIDDLE, or BOTTOM.
horizontal_alignmentNoHorizontal text alignment - LEFT, CENTER, or RIGHT.
number_format_patternNoCustom pattern for the number format.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description adds some behavior details beyond annotations, such as hex color format and Sheets number format types, and the default sheet selection. However, it does not disclose whether formatting merges with existing formatting or replaces it, nor any side effects or error behavior. The annotations already indicate non-readonly and non-destructive, and the description does not contradict them.

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 three concise sentences, front-loaded with the primary purpose, then elaborating with relevant parameter constraints. No redundant content, filler, or unnecessary details. Every sentence earns its place.

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

Completeness4/5

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

For a tool with 13 parameters and annotations, the description covers the main purpose, key value format constraints, and default behavior. It does not need to explain return values due to the presence of an output schema. A minor gap is not stating the effect on existing formatting, but overall it provides adequate context for selection and usage.

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?

With 100% schema coverage, the schema already documents each parameter. The description enriches understanding by clarifying acceptable color formats (#RRGGBB), providing examples of number format types, and explaining the default sheet behavior for ranges without a sheet name. This adds value beyond the schema's brief descriptions.

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 clearly identifies the tool's function with a specific verb ('Applies formatting') and enumerates the types of formatting (colors, number formats, wrapping, alignment, styling), distinguishing it from sibling tools like modify_sheet_values or read_sheet_values. It also adds a useful default behavior note, making the tool's scope unambiguous.

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 implies usage for formatting ranges but does not explicitly state when to use it over alternatives, mention exclusions, or reference sibling tools. The only contextual note is the default first-sheet behavior, which is more of a parameter detail than usage guidance. It provides some operational context but lacks explicit when/when-not guidance.

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/taylorwilsdon/google_workspace_mcp'

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