Skip to main content
Glama

Set Cell Formula

set_cell_formula

Set a formula or literal value on a single cell in an open Excel workbook, then retrieve the cell's calculated value.

Instructions

Set a formula (or literal value) on a single cell.

Args: workbook: Workbook name or path (None = active workbook). sheet: Worksheet name (None = active sheet). cell: A1-style cell reference, e.g. "B2". formula: Formula string starting with '=' (e.g. "=SUM(A1:A10)"), or a literal value.

Returns: JSON with the cell's resulting calculated value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cellNoA1
sheetNo
formulaNo
workbookNo
Behavior3/5

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

No behavioral annotations exist, so the description carries the burden. It does disclose that the tool sets a formula/literal and returns the resulting calculated value, but it does not mention overwriting existing cell contents, recalculation side effects, or any destructive implications of setting a cell.

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, front-loaded with a clear one-sentence summary, followed by a structured Args block and Returns line. Every sentence or bullet earns its place with no fluff.

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 4-parameter tool with no output schema, the description covers all parameters and the return value, including default active workbook/sheet behavior. It lacks edge-case detail like invalid formulas or error handling, but is otherwise complete for a simple setter.

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 description coverage is 0%, and the description fully compensates by explaining every parameter: workbook/sheet defaults, the A1-style cell format, and the '=' prefix requirement for formulas with a literal alternative. It adds all missing semantic value.

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 description states 'Set a formula (or literal value) on a single cell,' which uses a specific verb, resource, and scope. It clearly distinguishes itself from siblings like set_range_values (which targets ranges) and get_range_formulas (which reads formulas).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear usage context by explaining optional workbook/sheet defaults, A1-style cell references, and formula formatting. It does not explicitly name alternatives or provide when-not-to-use guidance, so it stops short of a 5.

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

Install Server

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/trustypangolin/excel-mcp-live'

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