Skip to main content
Glama

readCellFormat

Reads cell formatting, style, and dropdown validation for a bounded range, returning a readHandle that authorizes later format overwrites or validation changes in that same range.

Instructions

Reads the formatting/style and dropdown validation of cells in a given bounded range. On modern runtimes its readHandle authorizes a later formatCells, setDropdownValidation, or copyFormatting destination overwrite in that same range.

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": "readCellFormat"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesA1 notation range to read formatting from (e.g., "Sheet1!A1:D5" or "A1:B2").
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.6/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 burden, and it does disclose one genuinely non-obvious trait: the read yields a readHandle that later authorizes mutations on the same range. However, 'on modern runtimes' is vague about fallback behavior, and it says nothing about permission requirements, how unbounded/invalid ranges are rejected, or the shape of the returned formatting data.

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?

Two sentences, both front-loaded and dense with useful content — the primary purpose first, the readHandle side effect second. The only slight drag is the vague 'on modern runtimes' clause, which adds ambiguity rather than information.

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?

For a two-parameter read tool with no output schema, the definition covers what is read (formatting/style plus dropdown validation) and the important side effect of the returned handle. The remaining gap is the structure of the returned formatting payload, which an agent must discover at call time.

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 coverage is 100% and both parameters already document A1 notation and the spreadsheet ID, so the schema does the heavy lifting. The description only adds the qualifier 'bounded' for the range parameter, which is a modest hint rather than new 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?

States a specific verb ('Reads') and a specific resource ('formatting/style and dropdown validation of cells'), scoped to 'a given bounded range', which separates it from value-reading siblings like readSpreadsheet. The second sentence names the downstream consumers (formatCells, setDropdownValidation, copyFormatting), so an agent can place the tool in the workflow without opening another schema.

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?

The description gives a concrete condition for choosing this tool over a plain read: its readHandle authorizes a later overwrite of that same range, implying you should call it before mutating formats. It stops short of explicitly saying when NOT to use it (e.g., if you only need cell values, use a values-read tool).

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