Skip to main content
Glama

close_workbook

Free memory by closing an active Excel workbook session. Use discard_changes to close without saving.

Instructions

Close a workbook session and free its memory.

Refuses to close if there are unsaved changes, unless discard_changes=True.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
discard_changesNo
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It adds the key behavior of refusing to close with unsaved changes unless discard_changes=true, but lacks details on side effects, idempotency, or prerequisites like session validity.

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?

Two sentences with no wasted words. The first sentence front-loads the purpose, and the second adds crucial conditional behavior. Highly concise and efficiently structured.

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?

The description covers the core behavior but leaves gaps: no explanation of the session_id parameter, no return value info, and no linkage to sibling tools like open_workbook. Given the tool's simplicity, it is minimally adequate.

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

Parameters2/5

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

Schema coverage is 0%, yet the description only partially explains the discard_changes parameter. The required session_id parameter is not described; its source (e.g., from open_workbook) is omitted. This is insufficient for guiding the agent.

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 'Close a workbook session' with a specific verb and resource. It distinguishes from sibling tools like save_workbook and open_workbook by focusing on closing and memory cleanup.

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 explains the refusal condition for unsaved changes and explicitly mentions the discard_changes parameter. While it implies when to use it, it could be improved by directly stating alternatives like saving first via save_workbook.

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