Skip to main content
Glama
tg-tool

Google Sheets Write MCP Server

by tg-tool

set_cell_style

Apply cell styling like bold, italic, font size, colors, alignment, and borders to a Google Sheets range. Use dry-run to preview changes without modifying the sheet.

Instructions

Style cells. Only the parameters you pass are changed; the rest is preserved.

Formatting changes are NOT rollback-capable (use Sheets version history).

Args: spreadsheet_id_or_url: Full Sheets URL or bare spreadsheet ID. sheet: Sheet name OR gid string. range: Bare A1 range without sheet prefix. bold: Bold on/off. italic: Italic on/off. font_size: Font size in points. fg_color: Text color '#RRGGBB'. bg_color: Background color '#RRGGBB'. h_align: 'left' | 'center' | 'right'. borders: Optional {"sides": ["top","bottom","left","right","innerHorizontal","innerVertical"], "style": "SOLID|SOLID_MEDIUM|SOLID_THICK|DOTTED|DASHED|DOUBLE|NONE", "color": "#RRGGBB"}. dry_run: If true, return the execution plan without changing anything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boldNo
rangeYes
sheetYes
italicNo
bordersNo
dry_runNo
h_alignNo
bg_colorNo
fg_colorNo
font_sizeNo
spreadsheet_id_or_urlYes
Behavior4/5

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

With no annotations, the description clearly discloses partial updates, non-rollback behavior, and a dry_run parameter. It covers formatting details and border structure but omits potential limits like cell count or rate limits.

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 well-structured with a main statement, a warning, and a parameter list. It is efficient but could omit the 'Args' section formatting slightly to reduce redundancy.

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 11 parameters, 3 required, no annotations, and no output schema, the description covers parameter meanings adequately. It explains all optional parameters, but lacks specification of return values or success indicators.

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?

Despite 0% schema description coverage, the description provides detailed parameter explanations: formats for colors ('#RRGGBB'), border structure, range convention ('bare A1 without sheet prefix'), and dry_run purpose. This fully compensates for the schema gap.

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?

Description clearly states 'Style cells' with specific behavior: 'Only the parameters you pass are changed; the rest is preserved.' This differentiates it from sibling tools that update values or set number formats.

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 warns about no rollback capability and suggests using Sheets version history, but does not explicitly compare with alternative styling tools or provide when-to-use/not-to-use guidance relative to siblings like set_number_format.

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/tg-tool/google-sheets-write-mcp-server'

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