Skip to main content
Glama

copyFormatting

Copies formatting only—bold, colors, borders, and number formats—from a source range to a destination range in the same Google Sheets spreadsheet, leaving values unchanged.

Instructions

Copies formatting (not values) from a source range to a destination range within the same spreadsheet. Copies bold, colors, borders, number formats, etc. CopyPaste expands a smaller destination to the source size, so on modern runtimes readCellFormat must cover that complete effective destination 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>",
      "sourceSheetName": "<sourceSheetName>",
      "sourceRange": "<sourceRange>",
      "destinationSheetName": "<destinationSheetName>",
      "destinationRange": "<destinationRange>"
    },
    "name": "copyFormatting"
  }
}

Input Schema

NameRequiredDescriptionDefault
readHandleNoCapability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio.
sourceRangeYesA1 notation for the source range (e.g., "A1:D10"). Do not include the sheet name — use sourceSheetName instead.
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.
sourceSheetNameYesSource sheet/tab name (e.g., "Sheet1").
destinationRangeYesA1 notation for the destination range (e.g., "A1:D10"). Do not include the sheet name — use destinationSheetName instead.
destinationSheetNameYesDestination sheet/tab name (e.g., "Sheet2").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose a genuinely non-obvious behavior: a smaller destination is expanded to the source size by CopyPaste, which changes what range the caller must have read first. It also enumerates what formatting is copied (bold, colors, borders, number formats) and explicitly states values are untouched. It does not say whether pre-existing destination formatting is overwritten, nor anything about permissions or the response.

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?

Three sentences, each carrying distinct information — what is copied, what formatting types, and the expansion side effect — with the core purpose front-loaded. The final sentence is jargon-dense ("CopyPaste", "effective destination range") and takes a second read, which costs it a point.

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

Completeness3/5

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

Six parameters, five required, no annotations and no output schema, so the description must cover everything. It handles the core behavior and one important side effect well, but omits overwrite semantics for the destination, permission prerequisites for mutating a spreadsheet, and what the tool returns — meaningful gaps for a write operation.

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 exceeds it by tying readHandle to the requirement that readCellFormat cover the full effective destination range, which the schema never explains. It also reinforces the source/destination pairing constraint that the versioned range parameters embody.

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?

"Copies formatting (not values) from a source range to a destination range" is a specific verb plus resource with an explicit exclusion, which separates it from a value-copy operation and from readCellFormat/getFormatting at a glance. The scope constraint ("within the same spreadsheet") further narrows what this tool is.

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 sets a clear precondition — that readCellFormat must cover the complete effective destination range on modern runtimes — and limits operation to the same spreadsheet, which is real when-to-use guidance. It stops short of explicitly routing the agent to a sibling for cross-spreadsheet or value copies, leaving that to inference.

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