Skip to main content
Glama

format_cells

Destructive

Apply formatting to a Google Sheets cell range—font styles, colors, alignment, and number formats—to make spreadsheet data clear and readable.

Instructions

Apply formatting to a cell range (background color, font, alignment, number format).

Args: spreadsheet_id: The ID of the spreadsheet sheet: The name of the sheet range: A1 notation range to format (e.g. "A1:D5") bold: Set bold text italic: Set italic text strikethrough: Set strikethrough font_size: Font size in points font_color: RGB color dict, e.g. {"red": 1.0, "green": 0.0, "blue": 0.0} background_color: RGB color dict for cell background horizontal_alignment: "LEFT", "CENTER", or "RIGHT" vertical_alignment: "TOP", "MIDDLE", or "BOTTOM" number_format_type: "TEXT", "NUMBER", "PERCENT", "CURRENCY", "DATE", "TIME", "DATE_TIME", "SCIENTIFIC" number_format_pattern: Custom number format pattern, e.g. "#,##0.00"

Returns: Result of the batchUpdate operation

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "spreadsheet_id": "<spreadsheet_id>",
      "sheet": "<sheet>",
      "range": "<range>"
    },
    "name": "format_cells"
  }
}

Input Schema

NameRequiredDescriptionDefault
boldNo
rangeYes
sheetYes
italicNo
font_sizeNo
font_colorNo
strikethroughNo
spreadsheet_idYes
background_colorNo
number_format_typeNo
vertical_alignmentNo
horizontal_alignmentNo
number_format_patternNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

B3.1/5.0
Behavior2/5

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

Annotations declare destructiveHint=true, which raises the bar, but the description never explains what is destructive: it does not say whether existing formatting on the range is overwritten, whether omitted parameters leave current formatting untouched, or whether the whole range is re-styled. The only behavioral hint is "Result of the batchUpdate operation," which implies an underlying batch update but no atomicity or permission context.

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 purpose sentence is front-loaded, and the per-parameter list is justified by the complete absence of schema descriptions. The closing "Returns" line is weak and largely redundant given an output schema exists, but overall there is little waste.

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

Completeness3/5

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

For a 13-parameter destructive mutation, the description documents parameters well and benefits from an existing output schema. It stops short of the behavior an agent most needs before mutating: how partial updates interact with existing formatting, and what errors or partial application look like.

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?

Schema description coverage is 0% — properties carry only bare titles — so the Args block does real work: it explains A1 range notation with an example, gives the color dict shape with an RGB example, enumerates the horizontal/vertical alignment values, and lists the accepted number_format_type values plus a custom pattern example. The only shortfall is that boolean flags (bold/italic/strikethrough) are restated rather than clarified for unset semantics.

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?

Opens with a specific verb+resource ("Apply formatting to a cell range") and enumerates the formatting categories covered (background color, font, alignment, number format), so an agent knows exactly what the tool does. It does not, however, distinguish itself from siblings such as batch_update_cells or update_cells, leaving the boundary between formatting and value updates to inference.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. Usage is only implied by the fact that the tool formats cells; nothing tells the agent whether to reach for this versus batch_update_cells or update_cells when it wants to change a sheet.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools