Skip to main content
Glama

Move Sheet Rows

move_sheet_rows
Destructive

Move rows between sheets in a Google spreadsheet while preserving formulas, data, and formatting. Specify source and destination sheets and the row range.

Instructions

Moves rows from one sheet to another within the same spreadsheet. The move is performed in a single batchUpdate (copyPaste followed by deleteDimension). Note: batchUpdate executes requests sequentially but does not roll back on partial failure — if the copy succeeds but the delete fails, rows may be duplicated. Formulas, data types, and formatting are preserved (unlike a values.get/append round-trip). Row numbers are 1-based (matching the spreadsheet UI).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address. Required.
spreadsheet_idYesThe ID of the spreadsheet. Required.
source_sheetYesName of the sheet to move rows from. Required.
start_rowYesFirst row to move (1-based, inclusive). Required.
end_rowYesLast row to move (1-based, inclusive). Required.
destination_sheetYesName of the sheet to move rows to. Required.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

The description reveals important behavioral traits beyond annotations: the batchUpdate process (copyPaste followed by deleteDimension), potential partial failure leading to duplicate rows, and preservation of formulas/data types/formatting. This adds significant value as the annotations only indicate destructiveness.

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 three sentences with no filler. First sentence states purpose, second explains batchUpdate behavior and risk, third clarifies row numbering. Every sentence contributes essential information without redundancy.

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

Completeness5/5

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

Given the tool's complexity (6 parameters, output schema present), the description covers all necessary aspects: purpose, mechanism, failure mode, data preservation, and numbering convention. It does not need to explain return values as an output schema exists. This is comprehensive for the tool's nature.

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?

While the schema covers 100% of parameters, the description adds useful context: row numbers are 1-based (matching UI) and row range is inclusive. This goes beyond the schema descriptions which already mention 1-based. The extra note about inclusive range and UI alignment provides marginal added value.

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 moves rows between sheets within the same spreadsheet, which is a specific verb and resource. It distinguishes itself from sibling tools like append_table_rows or modify_sheet_values by focusing on move operations with batch update behavior.

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 does not explicitly state when to use vs alternatives, but it contrasts with a values.get/append round-trip, implying this tool is better for preserving formulas and formatting. However, no direct exclusion criteria or alternative recommendations are given.

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/theolefort-cyber/mcpworkspace'

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