Skip to main content
Glama
xlsx-mcp-server
by knorq-ai

write_rows

Inserts multiple rows of tabular data into an Excel .xlsx sheet at a specified starting row, enabling bulk entry instead of one cell at a time.

Instructions

Write multiple rows of data at once (bulk). Ideal for inserting tabular data.

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

Input Schema

NameRequiredDescriptionDefault
rowsYes2D array of values: [[row1...], [row2...], ...] (max 100,000 rows)
sheetYesSheet name or 1-based index
file_pathYesAbsolute path to the .xlsx file
start_rowYesStarting row number (1-based)
start_columnNoStart column letter (default 'A')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a mutation but never says whether existing values in the target range are overwritten, whether the write is atomic, what happens on partial failure or when rows exceed the sheet bounds, or whether an existing file/workbook is required.

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?

Two short sentences, front-loaded with the action and scope, with no filler. The parenthetical "(bulk)" slightly restates "multiple rows," and the brevity borders on under-specification for a five-parameter mutation tool.

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

Completeness2/5

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

With no annotations and no output schema, the description should compensate by describing overwrite behavior, file/sheet requirements, limits, and return values. It covers none of these; the only substantive detail (the 100,000-row cap) lives in the schema rather than the description.

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 all five parameters (including the 2D rows array, start_row and start_column) are already documented in the schema. The description adds no syntax, default, or constraint detail beyond the schema, so the baseline 3 applies.

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 and resource ("Write multiple rows of data at once") plus a scope qualifier ("bulk"), which separates it from single-cell/single-row writers like write_cell or write_row. It does not explicitly name or contrast with those siblings, so the differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

"Ideal for inserting tabular data" gives an implied usage context, but there is no when-not guidance, no named alternative (e.g., insert_rows for shifting existing data vs. overwriting), and no prerequisites such as whether the target file or sheet must already exist.

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