Skip to main content
Glama

sheets_merge_cells

Idempotent

Merges selected cell ranges in Google Sheets. Choose from merge all, columns, or rows to combine cells by spreadsheet ID and range.

Instructions

Merge cells in a Google Sheet

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeYes
mergeTypeYes
spreadsheetIdYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed12 schema fields changedv1.10.2
    • removedInput schema / properties / mergeType / def
      Removed value: -{
      -  "entries": {
      -    "MERGE_ALL": "MERGE_ALL",
      -    "MERGE_COLUMNS": "MERGE_COLUMNS",
      -    "MERGE_ROWS": "MERGE_ROWS"
      -  },
      -  "type": "enum"
      -}
    • changedInput schema / properties / mergeType / enum
      Previous value: -{
      -  "MERGE_ALL": "MERGE_ALL",
      -  "MERGE_COLUMNS": "MERGE_COLUMNS",
      -  "MERGE_ROWS": "MERGE_ROWS"
      -}New value: +[
      +  "MERGE_ALL",
      +  "MERGE_COLUMNS",
      +  "MERGE_ROWS"
      +]
    • removedInput schema / properties / mergeType / options
      Removed value: -[
      -  "MERGE_ALL",
      -  "MERGE_COLUMNS",
      -  "MERGE_ROWS"
      -]
    • changedInput schema / properties / mergeType / type
      Previous value: -"enum"New value: +"string"
    • removedInput schema / properties / range / def
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / range / format
      Removed value: -null
    • removedInput schema / properties / range / maxLength
      Removed value: -null
    • removedInput schema / properties / range / minLength
      Removed value: -null
    • removedInput schema / properties / spreadsheetId / def
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / spreadsheetId / format
      Removed value: -null
    • removedInput schema / properties / spreadsheetId / maxLength
      Removed value: -null
    • removedInput schema / properties / spreadsheetId / minLength
      Removed value: -null
  2. Changed20 schema fields changedv1.10.1
    • removedInput schema / properties / mergeType / _def
      Removed value: -{
      -  "typeName": "ZodEnum",
      -  "values": [
      -    "MERGE_ALL",
      -    "MERGE_COLUMNS",
      -    "MERGE_ROWS"
      -  ]
      -}
    • addedInput schema / properties / mergeType / def
      Added value: +{
      +  "entries": {
      +    "MERGE_ALL": "MERGE_ALL",
      +    "MERGE_COLUMNS": "MERGE_COLUMNS",
      +    "MERGE_ROWS": "MERGE_ROWS"
      +  },
      +  "type": "enum"
      +}
    • addedInput schema / properties / mergeType / enum
      Added value: +{
      +  "MERGE_ALL": "MERGE_ALL",
      +  "MERGE_COLUMNS": "MERGE_COLUMNS",
      +  "MERGE_ROWS": "MERGE_ROWS"
      +}
    • addedInput schema / properties / mergeType / options
      Added value: +[
      +  "MERGE_ALL",
      +  "MERGE_COLUMNS",
      +  "MERGE_ROWS"
      +]
    • addedInput schema / properties / mergeType / type
      Added value: +"enum"
    • removedInput schema / properties / mergeType / ~standard
      Removed value: -{
      -  "vendor": "zod",
      -  "version": 1
      -}
    • removedInput schema / properties / range / _def
      Removed value: -{
      -  "checks": [],
      -  "coerce": false,
      -  "typeName": "ZodString"
      -}
    • addedInput schema / properties / range / def
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / range / format
      Added value: +null
    • addedInput schema / properties / range / maxLength
      Added value: +null
    • addedInput schema / properties / range / minLength
      Added value: +null
    • addedInput schema / properties / range / type
      Added value: +"string"
    • removedInput schema / properties / range / ~standard
      Removed value: -{
      -  "vendor": "zod",
      -  "version": 1
      -}
    • removedInput schema / properties / spreadsheetId / _def
      Removed value: -{
      -  "checks": [],
      -  "coerce": false,
      -  "typeName": "ZodString"
      -}
    • addedInput schema / properties / spreadsheetId / def
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / spreadsheetId / format
      Added value: +null
    • addedInput schema / properties / spreadsheetId / maxLength
      Added value: +null
    • addedInput schema / properties / spreadsheetId / minLength
      Added value: +null
    • addedInput schema / properties / spreadsheetId / type
      Added value: +"string"
    • removedInput schema / properties / spreadsheetId / ~standard
      Removed value: -{
      -  "vendor": "zod",
      -  "version": 1
      -}
  3. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already provide idempotentHint and destructiveHint, so the description does not repeat that. However, it adds no additional behavioral context, such as what happens to cell values after merging or whether already-merged ranges are handled gracefully.

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 a single front-loaded sentence with no filler or redundancy. It is appropriately short for a simple tool, though it could have used some of its brevity to add useful context.

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?

For a simple three-parameter tool with annotations covering idempotency and destruction risk, the description is close to minimally viable. But it still omits important context about merge behavior, return/effect semantics, and parameter choices, so an agent has to infer nontrivial details from the schema and tool name.

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

Parameters2/5

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

Schema description coverage is 0%, and the description does not explain spreadsheetId, range format, or mergeType semantics. The schema provides parameter names and an enum, but the description does not compensate for the lack of parameter-level guidance.

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 is concise but specific: it names the action ('merge') and the resource ('cells in a Google Sheet'). It is clearly distinguishable from the sibling tool sheets_unmerge_cells, so an agent can identify the intended operation.

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

Usage Guidelines2/5

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

The description gives no guidance on when to use the tool or how to choose among MERGE_ALL, MERGE_COLUMNS, and MERGE_ROWS. There is no mention of when to prefer this over merging alternatives or related operations like unmerge or checking existing merges.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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