Skip to main content
Glama
Google Sheets MCP Server

Google Sheets MCP Server

by xmqywx

format_cells

Apply formatting such as bold, colors, number formats, font size, and alignment to a range of cells in a Google Sheets spreadsheet.

Instructions

Apply formatting to a range of cells (bold, color, number format, alignment)

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>",
      "sheetId": "<sheetId>",
      "startRow": "<startRow>",
      "endRow": "<endRow>",
      "startCol": "<startCol>",
      "endCol": "<endCol>"
    },
    "name": "format_cells"
  }
}

Input Schema

NameRequiredDescriptionDefault
boldNoSet text bold
endColYesEnd column index (exclusive, 0-based)
endRowYesEnd row index (exclusive, 0-based)
italicNoSet text italic
sheetIdYesThe numeric sheet ID (from list_sheets)
fontSizeNoFont size in points
startColYesStart column index (0-based)
startRowYesStart row index (0-based)
numberFormatNoNumber format
spreadsheetIdYesThe ID of the spreadsheet
backgroundColorNoBackground color as RGB (0-1 range)
foregroundColorNoText color as RGB (0-1 range)
horizontalAlignmentNoHorizontal alignment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It lists formatting categories but does not disclose whether unspecified properties are preserved or cleared, whether existing formatting is merged or overwritten, permission requirements, or the response behavior.

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 a single, front-loaded sentence with no filler. It is appropriately sized for a simple operation summary, though it could say more where behavior matters.

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

Completeness2/5

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

For a mutation tool with 13 parameters, nested objects, no annotations, and no output schema, the description is too thin. It does not explain update semantics, permission needs, or whether formatting applies partially or replaces existing styles.

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 100%, so the schema already explains all 13 parameters including nested color and number format objects. The description adds a high-level summary of formatting dimensions but no syntax or semantics beyond what the schema provides.

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?

The description uses a specific verb ("Apply formatting") and resource ("range of cells"), and gives concrete examples of formatting types. It is clear what the tool does, though it does not explicitly distinguish itself from siblings like write_range or clear_range.

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 guidance on when to use this tool versus alternatives, no prerequisites, and no mention of when not to use it. The agent must infer that this is for styling rather than writing values or clearing ranges.

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