Skip to main content
Glama
tg-tool

Google Sheets Write MCP Server

by tg-tool

set_number_format

Set the number format of a spreadsheet range using patterns like '#,##0' or '0.0%'. Preserves other formatting and supports dry run to preview changes.

Instructions

Set the number format of a range (e.g. '#,##0', '0.0%', 'yyyy-mm-dd').

Only numberFormat is touched — other formatting 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. pattern: Number format pattern string. type: One of TEXT/NUMBER/PERCENT/CURRENCY/DATE/TIME/DATE_TIME/SCIENTIFIC. dry_run: If true, return the execution plan without changing anything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoNUMBER
rangeYes
sheetYes
dry_runNo
patternYes
spreadsheet_id_or_urlYes
Behavior4/5

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

With no annotations, the description fully discloses that only numberFormat is touched, other formatting is preserved, and changes are not rollback-capable. It also describes dry_run behavior. No mention of errors or limits, but sufficient for the tool's scope.

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, front-loaded with the primary purpose and key behaviors, and uses a clean Args list. Every sentence adds value without 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 the complexity (6 params, no output schema), the description covers all parameters and key behaviors (dry_run, rollback). It lacks details about the normal return value, but is otherwise complete for this tool.

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?

Since the input schema has no descriptions (0% coverage), the description provides clear explanations for all six parameters, including the acceptable values for type and the format for sheet and range. 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?

The description clearly states the tool sets the number format of a range, provides examples of patterns, and distinguishes from sibling tools by noting that only numberFormat is touched and other formatting is preserved.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explains that only numberFormat is changed, implying when to use this over other formatting tools, and advises using Sheets version history for rollback. However, it does not explicitly name alternatives or state when not to use it.

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