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

write_row

Writes a row of values into an Excel worksheet at a specified row and optional starting column, enabling targeted batch data entry in .xlsx files.

Instructions

Write a row of values starting from a given row number and optional start column.

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>",
      "row": "<row>",
      "values": "<values>"
    },
    "name": "write_row"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowYesRow number (1-based)
sheetYesSheet name or 1-based index
valuesYesArray of values to write (max 16,384 — Excel column limit)
file_pathYesAbsolute path to the .xlsx file
start_columnNoStart column letter (default 'A')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/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, and it discloses very little. It does not state whether existing cell contents in the target range are overwritten, whether cells are shifted, whether the .xlsx file must already exist, or what is returned on success. For a mutation tool with zero annotation coverage this is a significant gap.

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?

A single well-formed sentence with the operation and its anchoring parameter front-loaded, and no redundant wording. It is efficient but arguably too terse for the amount of behavioral information an agent actually needs here.

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 five parameters, four required, a mutation side effect, no annotations, and no output schema, the definition should explain overwrite semantics and file preconditions. Instead it covers only the mechanical write action, leaving an agent unable to predict the effect on pre-existing data.

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 parameter (file_path, sheet, row, values, start_column) is already documented in the schema, including the 1-based indexing and the 16,384 max. The description echoes row number and start column but adds no format, default, or edge-case meaning beyond the schema, making baseline 3 appropriate.

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 gives a clear verb and resource ("Write a row of values") plus the anchoring parameter (starting row number, optional start column), so an agent knows exactly what operation is performed. It does not distinguish this from siblings like write_rows, write_cells, or write_cell, leaving the single-row scope to be inferred.

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 guidance on when to choose this over write_rows (multiple rows) or write_cells (scattered cells), which are the obvious alternatives. No prerequisites, no constraints mentioned, so selection between near-identical write tools is left entirely to inference.

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