Skip to main content
Glama

write_range

Writes a 2D array of values into an Excel sheet range from a chosen top-left cell, using null for empty cells.

Instructions

Write a 2D array of values to a range starting at a specific cell

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": {
      "workbookId": "<workbookId>",
      "sheet": "<sheet>",
      "startCell": "<startCell>",
      "values": "<values>"
    },
    "name": "write_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYesSheet name or index (1-based)
valuesYes2D array of values. Each inner array is a row. Use null for empty cells.
startCellYesTop-left cell address (e.g., 'A1')
workbookIdYesThe workbook ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.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 provided, so the description carries full behavioral burden. It does not disclose whether existing cell contents are overwritten, what happens if the array extends past populated data, whether the write persists without save_workbook, or what is returned on success or failure.

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?

A single front-loaded sentence with no filler, stating the operation and the anchoring semantic in one pass. Nothing in it is redundant or wasteful given the size of the underlying 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?

For a mutating, four-parameter bulk-write tool with no annotations and no output schema, the description is under-specified. It omits overwrite behavior, persistence and save requirements, and failure modes, which are exactly the details an agent cannot recover from the 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%, so each of the four parameters is already documented in the schema; the description adds no format or syntax detail beyond restating that values are a 2D array placed from a start cell. Baseline 3 is appropriate when the schema does the heavy lifting.

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 states a specific verb and resource ('Write a 2D array of values to a range') and the scope ('starting at a specific cell'), which is concrete. It does not differentiate itself from the close sibling write_cell, so an agent must infer the boundary from names alone.

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 explicit when-to-use guidance and no mention of when to prefer this over write_cell for a single value or read_range for inspection. Prerequisites such as opening the workbook or saving afterwards are also unstated.

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