Skip to main content
Glama

recalculate_workbook

Recalculate all formulas in an Excel workbook using a hidden desktop Excel instance and cache computed results, ensuring up-to-date values without opening Excel visibly.

Instructions

Recalculate all formulas using a hidden desktop Excel instance and cache the results in the file, so read_calculated_range can return computed values.

Saves the session to disk first (flushing pending edits), then opens the file invisibly in Excel, recalculates, and saves. The in-memory session keeps formulas as text; only the file on disk gains cached results. Requires Microsoft Excel on Windows (uv sync --extra com).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
Behavior5/5

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

No annotations are provided, so the description fully carries the burden. It transparently describes the process (saves session, opens Excel invisibly, recalculates, saves) and notes that the in-memory session retains formulas as text while only the file on disk gets cached results. It also discloses the requirement for desktop Excel.

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 three sentences, front-loading the main purpose. Every sentence adds value: purpose, process details, and a requirement. No unnecessary words.

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?

Given the tool has no output schema and is a side-effect operation, the description explains input (session_id), process, and prerequisites. It could add notes about performance or that the file is modified, but it is largely complete.

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 coverage is 0%, but the single parameter session_id is implicitly clear from the context ('Saves the session to disk'). However, the description could explicitly document session_id as the workbook session identifier.

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 clearly states the tool's function: it recalculates formulas using a hidden Excel instance and caches results for read_calculated_range. It distinguishes from sibling tools by explaining the caching purpose.

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 provides context: it requires Microsoft Excel on Windows and a specific uv extra. It implies usage when computed values are needed, but does not explicitly state when not to use it or mention alternatives beyond read_calculated_range.

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/ShubhamDbug/Excel-MCP'

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