Skip to main content
Glama

add_rows

Destructive

Adds a specified number of rows to a Google Spreadsheet sheet and lets you set the starting 0-based row index, enabling structured sheet updates via the Sheets API.

Instructions

Add rows to a sheet in a Google Spreadsheet.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet count: Number of rows to add start_row: 0-based row index to start adding. If not provided, adds at the beginning.

Returns: Result of the operation. Returns {"error": ...} without calling the Sheets API if start_row is negative or count isn't positive.

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": {
      "spreadsheet_id": "<spreadsheet_id>",
      "sheet": "<sheet>",
      "count": "<count>"
    },
    "name": "add_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYes
sheetYes
start_rowNo
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, and the description adds genuinely new pre-call knowledge: a negative start_row or non-positive count returns an error object without hitting the Sheets API. It still does not disclose the key side effect of an insertion — that existing rows shift down and any data below start_row is displaced — nor any permission or quota requirements.

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?

Short and front-loaded, with the one-line purpose first and a compact Args block where every line adds information. The Returns note is brief and stays focused on the interesting failure case rather than restating the output schema.

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?

With an output schema present, the description need not explain return values, and it covers all four parameters plus the main validation failure mode. What is missing for a destructive mutation is an explicit statement that the tool inserts rows and shifts existing content at and below start_row.

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 description coverage is 0%, so the description must carry the parameter burden, and it does: spreadsheet_id is annotated as coming from the URL, count is the number of rows, and start_row is documented as 0-based with defined default behavior when omitted. It is only short of a 5 because bounds or maximums on count are not indicated.

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 (add) and resource (rows) scoped to a sheet in a Google Spreadsheet, which is enough to separate it from delete_rows, add_columns, and resize_rows. It does not explicitly contrast itself with those siblings, so it stops short of a 5.

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?

There is no when-to-use guidance, no mention of prerequisites (write access to the spreadsheet), and no routing to alternatives such as add_columns or insert-at-position variants. The only conditional statement concerns start_row's default, which is parameter behavior rather than usage guidance.

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