Skip to main content
Glama

sheets_compare_ranges

Compare cell formatting between two ranges with identical dimensions, returning only the cells and properties that differ. Useful for verifying formatting consistency across repeated patterns.

Instructions

Compare cell formatting between two ranges of identical dimensions. Useful for verifying repeated patterns, e.g. "do all data rows 6–85 have identical formatting?" or "is row 10 formatted identically to the template row 5?". Returns a diff listing only the cells and properties that differ between the two ranges. Cells are compared position-by-position; rangeA and rangeB must have the same number of rows and columns. Use fields to restrict comparison to specific format properties.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsNoOptional list of format property names to compare, e.g. ["backgroundColor", "textFormat"]. All format properties compared if omitted.
rangeAYesFirst range with sheet prefix, e.g. "Sheet1!A6:Z6"
rangeBYesSecond range with sheet prefix, e.g. "Sheet1!A7:Z7"
spreadsheetIdYesThe ID of the spreadsheet (found in the URL after /d/)
useEffectiveFormatNoDefault: false. Compare effectiveFormat (true) or userEnteredFormat (false). effectiveFormat includes conditional formatting overlays.
Behavior4/5

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

With no annotations provided, the description clearly explains that the tool is a read operation, returns a diff of differing cells, requires identical dimensions, and describes parameters like 'useEffectiveFormat'. It could detail the output structure more.

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 (four sentences), front-loaded with the main purpose, and each sentence adds necessary context. No redundant or vague statements.

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 no output schema, the description mentions it returns a 'diff listing only the cells and properties that differ.' This is adequate but lacks detail on the structure of the diff. The tool's complexity is moderate, so it's mostly complete.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by explaining the purpose of 'fields' (restrict comparison) and 'useEffectiveFormat' (compare effective vs userEntered format), and gives example range formats.

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's purpose: 'Compare cell formatting between two ranges of identical dimensions.' It provides specific examples like 'do all data rows 6–85 have identical formatting?' which distinguishes it from sibling tools that manipulate formatting rather than compare.

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 concrete use cases ('verifying repeated patterns') and advises on using 'fields' to restrict comparison. However, it does not explicitly state when not to use this tool or mention alternatives, missing some guidance.

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/freema/mcp-gsheets'

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