Skip to main content
Glama

Insert rows

insert_rows
Destructive

Insert one or more blank rows into a sheet, shifting existing rows down and adjusting every affected formula reference automatically (Microsoft's own Excel engine does the shift, so this is safe even with cross-sheet formulas). Only works on workbooks in Excel Online mode. Structure changed afterward — consider re-running analysis to refresh insights.

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": {
      "workbookId": "<workbookId>",
      "sheetName": "<sheetName>",
      "beforeRow": "<beforeRow>",
      "count": "<count>"
    },
    "name": "insert_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYes
beforeRowYes
sheetNameYes
workbookIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Beyond the destructiveHint/openWorldHint annotations, it explains that existing rows shift down, that formula references are auto-adjusted by Microsoft's Excel engine, and that cross-sheet formulas remain safe. This is exactly the behavioral context (what gets displaced, safety guarantees, environment constraint) an agent needs before a destructive mutation.

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, front-loaded with the core action and the shift behavior, with no filler. The trailing 'Structure changed afterward' sentence is slightly repetitive with the earlier shift explanation but still actionable.

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?

The safety and environment story is well covered for a destructive mutation, and no output schema exists to explain. However, with four required parameters at zero schema description coverage and no output schema, leaving beforeRow indexing and count limits entirely unexplained is a meaningful gap.

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% across four required parameters, so the schema offers no parameter meaning. The description only implicitly hints at 'count' ('one or more blank rows') and 'beforeRow' ('shifting existing rows down'); it never clarifies that beforeRow is a 1-based insert-position index, nor mentions the count bounds (1-1000).

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?

The description names a specific verb and resource ('Insert one or more blank rows into a sheet') and states the resulting side effect ('shifting existing rows down'). It is distinguishable from insert_columns/delete_rows by the resource type, though it never explicitly contrasts with those siblings.

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?

It gives a hard prerequisite ('Only works on workbooks in Excel Online mode') and a post-call recommendation ('consider re-running analysis to refresh insights'). It stops short of naming when to prefer a sibling tool, so it earns a 4 rather than a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources