Skip to main content
Glama

set_cells

Write numeric values, text, or formulas into specific cells of a LibreOffice Calc spreadsheet. Specify cells and values or formulas to update targeted cells in a chosen sheet.

Instructions

Write cells in a Calc document. Returns {written}.

    cells is a list of {cell, value?|formula?} entries, e.g.
      [{"cell": "A1", "value": 21}, {"cell": "A2", "formula": "=A1*2"}]
    A "value" that is a number is written numerically; otherwise as text. A
    "formula" (starting with =) is evaluated by Calc. sheet selects the
    target sheet by name or 0-based index (defaults to the first sheet).
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cellsYes
sheetNo
doc_idYes
Install Server

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses substantial behavior: numeric values are written numerically and other values as text, formulas starting with '=' are evaluated by Calc, and sheet defaults to the first sheet. The main gap is that the promised return '{written}' is not explained (count vs. list), and overwrite behavior of existing cells is never mentioned.

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?

The description is compact and front-loaded, opening with the core action and return before moving to the parameter format. Each sentence adds distinct information — example structure, coercion rules, formula evaluation, sheet selection — with no filler or repetition of what the schema already shows.

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

Completeness4/5

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

For a three-parameter mutation tool with no annotations and no output schema, the description covers invocation well: both required parameters are usable from the text and the optional sheet parameter is fully explained. It falls short only in not clarifying what the '{written}' return value contains and in not routing the agent away from formatting siblings.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: the cells parameter is fully explained with a concrete example and distinct rules for value vs. formula entries, and sheet is specified as name-or-index with a default. Only doc_id is left to inference, though its name and schema title make it self-evident.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence, 'Write cells in a Calc document. Returns {written},' uses a specific verb and resource, making the contrast with sibling read_cells obvious (write vs. read). The value/formula entry examples further distinguish it from formatting siblings like style_cells and set_column_width, which target presentation rather than content.

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 description thoroughly explains how the tool behaves — entry format, value vs. formula handling, sheet selection — but never states when to prefer it over alternatives such as read_cells for reading or style_cells for formatting. Usage context is implied by the tool's purpose rather than explicitly declared with exclusions or alternative routing.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/krondor-corp/libre-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server