Skip to main content
Glama
Skeptomenos

google-workspace-mcp-advanced

by Skeptomenos

format_sheet_range

Apply background and text colors, number or date formats to a Google Sheets range. Preview changes with dry run before applying.

Instructions

Applies formatting to a range: background/text color and number/date formats.

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

Args: user_google_email (str): The user's Google email address. Required. spreadsheet_id (str): The ID of the spreadsheet. Required. range_name (str): A1-style range (optionally with sheet name). Required. background_color (Optional[str]): Hex background color (e.g., "#FFEECC"). text_color (Optional[str]): Hex text color (e.g., "#000000"). number_format_type (Optional[str]): Sheets number format type (e.g., "DATE"). number_format_pattern (Optional[str]): Optional custom pattern for the number format. dry_run (bool): When True (default), return planned formatting without mutating the sheet.

Returns: str: Confirmation of the applied formatting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
spreadsheet_idYes
range_nameYes
background_colorNo
text_colorNo
number_format_typeNo
number_format_patternNo
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Since no annotations exist, the description carries the full burden. It discloses that the tool can mutate the sheet (with dry_run defaulting to true), explains color and number format types, and notes default sheet usage. However, it does not specify whether formatting is additive or overwriting, nor does it mention required permissions or rate limits.

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 well-structured with a brief summary paragraph followed by a clear Args list. It is appropriately sized for the 8-parameter tool and front-loads the purpose. Minor redundancy (e.g., repeating 'Required' in param descriptions could be trimmed) but overall efficient.

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?

Given the tool's complexity (8 params, no annotations), the description covers all parameters, return type, and dry_run behavior. The presence of an output schema reduces the need to detail return values. Missing: error scenarios or effect on existing formatting, but still fairly complete for its class.

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?

With 0% schema description coverage, the description compensates fully by explaining every parameter in the Args section, including types, defaults, and optionality. For example, it clarifies that background_color accepts hex strings and number_format_type uses Sheets-defined types. This exceeds the baseline expectation.

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?

Description clearly states the action ('Applies formatting to a range') and the resources (background/text color, number/date formats). It is specific enough to distinguish this tool from value-modifying siblings like modify_sheet_values, though no explicit differentiation is given.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternative formatting tools (e.g., add_conditional_formatting) or when not to use it. The description implies usage for formatting ranges but lacks explicit context or exclusion criteria.

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/Skeptomenos/google-workspace-mcp-advanced'

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