Skip to main content
Glama
google-sheets-mcp
by ezrazhang7

Format cells

format_cells

Apply targeted formatting to a Google Sheets range—bold, italic, font size, text/background colors, alignment, wrapping, and number formats—while changing only the specified options.

Instructions

Apply formatting to a range: bold/italic, font size, text and background color, alignment, wrapping, and number format. Only the options you pass are changed.

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": {
      "spreadsheetId": "<spreadsheetId>",
      "range": "<range>"
    },
    "name": "format_cells"
  }
}

Input Schema

NameRequiredDescriptionDefault
boldNo
wrapNo
rangeYesA1 range to format, e.g. "A1:F1"
sheetNoSheet (tab) name; defaults to the first sheet
italicNo
fontSizeNo
textColorNo
numberFormatNoNumber format pattern, e.g. "#,##0.00", "0.0%", "$#,##0", "yyyy-mm-dd"
spreadsheetIdYesSpreadsheet ID or full Google Sheets URL
backgroundColorNo
horizontalAlignNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose one important trait: partial-update semantics ("Only the options you pass are changed"), which tells the agent that omitted facets are untouched rather than reset. It says nothing about permissions required, whether the call returns anything, or how formatting interacts with ranges that later receive appended rows.

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?

Two tight sentences, front-loaded with the action and scope, followed by the one non-obvious semantic rule. The parameter enumeration earns its space given the low schema coverage; nothing is redundant.

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 an 11-parameter mutation tool with no annotations and no output schema, the definition covers the formatting facets and the partial-update rule but omits return behavior and failure modes. The agent can probably call it correctly, but not with full confidence about side effects or results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 36% for 11 parameters, so the description must compensate, and it partially does by naming every adjustable facet. However it does not disambiguate textColor vs backgroundColor, does not explain the wrap/align enum values, and does not mention the sheet parameter's default-first-sheet behavior (only covered in the schema).

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?

"Apply formatting to a range" is a specific verb+resource, and the enumerated facets (bold/italic, font size, colors, alignment, wrapping, number format) make the scope concrete. It is implicitly distinct from value-editing siblings like update_cells, but no sibling is named, so the differentiation is left 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?

The description never states when to use this tool versus alternatives such as update_cells or batch_update, nor any prerequisites (e.g., edit permissions). The only usage signal is the implicit one carried by the word "formatting".

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