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

write_cells

Set multiple Excel cells at once by specifying cell addresses and values, enabling bulk data entry without editing each cell individually.

Instructions

Set multiple cells at once (bulk). Each entry specifies a cell address and value.

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>",
      "cells": "<cells>"
    },
    "name": "write_cells"
  }
}

Input Schema

NameRequiredDescriptionDefault
cellsYesArray of cell edits (max 100,000)
sheetYesSheet name or 1-based index
file_pathYesAbsolute path to the .xlsx file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden and delivers almost none: it doesn't say that existing values are overwritten, whether sheets or the file are created if absent, whether writes are atomic or partial on invalid addresses, or whether changes persist to disk. For a mutating bulk-write tool this is a substantial gap.

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 short sentences, bulk semantics front-loaded, no filler. Every clause contributes to identifying the operation.

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?

A mutating bulk operation with no annotations, no output schema, and three required parameters warrants more than two sentences. Nothing is said about overwrite behavior, error/partial-success semantics, or whether the file must already exist, all of which an agent needs before calling it.

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

Parameters5/5

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

Schema coverage is 100% and every parameter carries a description, but the extra operational fact stated here is the 100,000-entry cap on the cells array, which materially shapes how an agent chunks its calls. That is meaning beyond the schema's per-field documentation.

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?

"Set multiple cells at once (bulk)" gives a specific verb plus resource and signals batched scope, which separates it from the singular write_cell without needing to name it. It stops short of an explicit sibling comparison, so it is clear but not fully differentiated.

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?

The "(bulk)" tag implies this is the multi-cell variant, but there is no statement of when to prefer it over write_cell, write_row or write_rows, nor any exclusion or prerequisite. An agent must infer the routing from the tool name alone.

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