Skip to main content
Glama

format_cells

Apply cell formatting to a specified A1 range in Google Sheets, including font, color, alignment, wrapping, and number formats. Only the arguments passed are changed.

Instructions

Apply cell formatting to an A1 range. Only the arguments you pass change.

  • text_color / background_color: "#RRGGBB", a named color (red, blue, lightgray, ...), or omit to leave unchanged.

  • horizontal_alignment: LEFT | CENTER | RIGHT.

  • vertical_alignment: TOP | MIDDLE | BOTTOM.

  • wrap_strategy: OVERFLOW_CELL | CLIP | WRAP.

  • number_format_type: TEXT | NUMBER | PERCENT | CURRENCY | DATE | TIME | DATE_TIME | SCIENTIFIC; pair with an optional number_format_pattern (e.g. "$#,##0.00", "0.0%").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boldNo
rangeYes
italicNo
font_sizeNo
underlineNo
text_colorNo
font_familyNo
strikethroughNo
wrap_strategyNo
spreadsheet_idYes
background_colorNo
number_format_typeNo
vertical_alignmentNo
horizontal_alignmentNo
number_format_patternNo
Behavior4/5

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

With no annotations provided, the description bears full responsibility. It discloses that only passed arguments are modified, implying non-destructive behavior for unspecified properties. It details valid values for color, alignment, wrap, and number format. However, it does not mention side effects (e.g., overwriting existing formatting), authentication needs, rate limits, or return value.

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 concise with a clear one-sentence summary followed by bullet points for parameter details. Every sentence adds value; no fluff or repetition. The structure is easy to scan and front-loaded with the core purpose.

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 15 parameters (2 required), no output schema, and no annotations, the description covers the main formatting categories well. However, it lacks information about the return value (e.g., what is returned after formatting? success indicator?) and does not mention any preconditions like requiring a valid spreadsheet_id/range. Overall, it is reasonably complete for typical use but could be stronger.

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?

The input schema has 0% description coverage, so the description must compensate. It adds significant meaning by explaining valid formats for colors (hex, named), enumerating alignment options, and detailing number format type/pattern with examples. However, it does not describe boolean parameters like bold, italic, underline, strikethrough, or font_size/font_family, leaving some parameters with only schema-provided titles.

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 applies cell formatting to an A1 range, using the specific phrase 'Apply cell formatting to an A1 range.' It distinguishes from sibling tools like set_borders or merge_cells by focusing on font, color, alignment, and number format. The verb 'apply' and resource 'cell formatting' are specific and action-oriented.

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 use for formatting cells but does not explicitly state when to use this tool versus alternatives such as set_borders or apply_style_preset. It lacks guidance on preconditions (e.g., range must exist), when not to use, or trade-offs. The sentence 'Only the arguments you pass change' offers some usage hint but no explicit context.

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/richmcpharlin/google-sheets-mcp'

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