Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

format_sheet_range

Apply formatting to Google Sheets ranges by setting background/text colors and number/date formats using hex codes and Sheets format types.

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.

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the tool's behavior: it applies formatting to a specified range, accepts color and format inputs, and returns a confirmation string. It also notes default behavior for sheet names. However, it lacks details on permissions, error handling, or rate limits, which would be useful for a mutation tool.

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 well-structured and front-loaded: it starts with the core purpose, then details parameter semantics in a clear 'Args' section, and ends with return information. Every sentence adds value, with no redundant or vague language, making it efficient and easy to parse.

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 (7 parameters, mutation operation) and lack of annotations, the description is mostly complete: it covers purpose, parameters, and return value. However, it could improve by addressing behavioral aspects like error conditions or permissions. The presence of an output schema (indicating a string return) reduces the need to explain return values in detail.

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 fully compensate. It adds significant meaning beyond the schema by explaining each parameter's purpose, format, and examples: user_google_email and spreadsheet_id are required for identification, range_name uses A1-style, colors accept hex strings, and number formats follow Sheets types with examples. This provides clear guidance for parameter usage.

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 states the tool's purpose with specific verbs ('Applies formatting') and resources ('to a range'), listing the formatting types (background/text color, number/date formats). It distinguishes itself from sibling tools like 'add_conditional_formatting' or 'modify_sheet_values' by focusing on direct range formatting rather than conditional rules or value changes.

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

Usage Guidelines4/5

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

The description provides clear context for usage: it specifies that formatting is applied to a range, mentions default behavior (first sheet used if no sheet name provided), and lists the types of formatting supported. However, it does not explicitly state when to use this tool versus alternatives like 'add_conditional_formatting' or 'update_conditional_formatting', nor does it mention any prerequisites or exclusions.

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/c0webster/hardened-google-workspace-mcp'

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