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

write_cell

Set a single cell's value or formula in an Excel .xlsx worksheet by specifying the file, sheet, cell address, and value; prefix formulas with '='.

Instructions

Set a single cell's value or formula. Start value with '=' for formulas (e.g. '=SUM(A1:A10)').

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>",
      "cell": "<cell>",
      "value": "<value>"
    },
    "name": "write_cell"
  }
}

Input Schema

NameRequiredDescriptionDefault
cellYesCell address (e.g. 'A1', 'B5')
sheetYesSheet name or 1-based index
valueYesValue to set. Start with '=' for formulas.
file_pathYesAbsolute path to the .xlsx file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/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 disclosure burden. It says nothing about overwriting an existing cell value, whether the .xlsx file must already exist, permission or locking requirements, or what happens on an invalid address/reference. The only behavioral note, the '=' formula trigger, merely restates the schema's `value` description.

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 core action, with no filler. It is efficient, though it is perhaps too terse for a mutation tool with zero annotation coverage.

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?

For a simple single-cell setter with fully documented parameters, the description covers the essential action. Missing are the overwrite semantics and file/sheet preconditions that an agent needs before invoking a write with no safety annotations and no output schema.

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%, with file_path, sheet, cell pattern, and value all documented in the schema, so the baseline is 3. The description's formula example adds a small illustration but no meaning beyond the schema's own 'Start with '=' for formulas' text.

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 ('Set a single cell's value or formula'), and the word 'single' implicitly contrasts with the plural write_cells sibling. It doesn't name the bulk alternative explicitly, so an agent must infer that boundary from the sibling list rather than the text.

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?

The scope ('single cell') hints at when to prefer this over write_cells or write_row, but no when-to-use or when-not-to-use guidance is stated. No prerequisites, no mention of whether the 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.