Skip to main content
Glama

Append rows

append_rows

Add rows below the last used row of an Excel sheet without overwriting existing cells; use write_cells to modify existing data.

Instructions

Add rows below the last used row of a sheet. Never overwrites existing cells.

To change existing cells use write_cells.

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": {
      "sheet": "<sheet>",
      "rows": "<rows>"
    },
    "name": "append_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile path or preloaded name (list_configured_files). Omit if only one file is preloaded.
rowsYesRows to add, each a list of values from column A, e.g. [["INV-3", 7, "=B5*2"]]. Strings starting with "=" become formulas.
sheetYesSheet name (case-sensitive).
backupNoSave a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true).
reasonNoWhy; kept in the change log (XLSX_MCP_CHANGE_LOG=true).
recalculateNoRecompute formulas with LibreOffice after saving. False: faster, formula results stay empty.
allow_external_formulasNoAllow WEBSERVICE, HYPERLINK, INDIRECT, RTD, CALL, REGISTER and DDE ('|') in formulas.
create_sheet_if_missingNoCreate the sheet if missing.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.4.0
    • addedInput schema / properties / allow_external_formulas / description
      Added value: +"Allow WEBSERVICE, HYPERLINK, INDIRECT, RTD, CALL, REGISTER and DDE ('|') in formulas."
    • addedInput schema / properties / backup / description
      Added value: +"Save a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true)."
    • addedInput schema / properties / create_sheet_if_missing / description
      Added value: +"Create the sheet if missing."
    • addedInput schema / properties / path / description
      Added value: +"File path or preloaded name (list_configured_files). Omit if only one file is preloaded."
    • addedInput schema / properties / reason
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Why; kept in the change log (XLSX_MCP_CHANGE_LOG=true).",
      +  "title": "Reason"
      +}
    • addedInput schema / properties / recalculate / description
      Added value: +"Recompute formulas with LibreOffice after saving. False: faster, formula results stay empty."
    • addedInput schema / properties / rows / description
      Added value: +"Rows to add, each a list of values from column A, e.g. [[\"INV-3\", 7, \"=B5*2\"]]. Strings starting with \"=\" become formulas."
    • addedInput schema / properties / sheet / description
      Added value: +"Sheet name (case-sensitive)."
  2. Changed2 schema fields changedv0.3.0
    • addedInput schema / properties / allow_external_formulas
      Added value: +{
      +  "default": false,
      +  "title": "Allow External Formulas",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / backup
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Backup"
      +}
  3. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, and 'never overwrites existing cells' corroborates that safety profile rather than adding new mechanics. The description says nothing about backup creation, formula recalculation, the change-log entry, or external-formula gating, all of which are only in the schema.

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?

Two sentences, no filler, with the core append semantics front-loaded and the alternative tool named second. Every clause earns its place.

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?

For an eight-parameter mutation tool this is lean but sufficient: the output schema covers returns and the input schema covers all behavioral flags. The only shortfall is that risky behaviors like formula recalculation and automatic backup are left entirely to the schema rather than surfaced in prose.

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

Parameters3/5

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

Schema description coverage is 100%, so every one of the eight parameters (including formula strings starting with '=', backup, recalculate, and allow_external_formulas) is already documented. The description adds no meaning beyond that, which is the baseline case for full schema coverage.

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?

States a specific verb and resource ('Add rows below the last used row of a sheet') plus a scope guarantee ('Never overwrites existing cells'). The second sentence names the sibling tool (write_cells) that handles the contrasting case, so an agent can distinguish the two without opening either schema.

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?

Explicitly routes the agent away from this tool when the goal is modifying existing cells, naming write_cells as the alternative. It does not address positional insertion versus appending, but the stated append semantics are unambiguous for the common case.

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