Skip to main content
Glama

com_close_open_document

Close an open Word document and release its file lock so other tools can edit the file. Saves changes by default; pass save=False to discard unsaved changes.

Instructions

Tell the user's running Word to CLOSE an open document, releasing the file lock so file-based tools can edit it. Saves by default; pass save=False to discard unsaved changes. Use when switching from live editing to file-mode tools. Requires Word installed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
saveNo
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/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 discloses the default save behavior, the effect of save=False, the file-lock release, and the Word prerequisite, giving the agent a solid model of side effects.

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 the core action, and every sentence adds useful information. There is no filler or repetition of schema details.

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?

The description covers the core behavior, default side effect, usage context, and prerequisite. It lacks explicit guidance on error cases such as the document not being open or how file_path resolves to the target document, which keeps it from being fully complete.

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?

With 0% schema description coverage, the description must compensate for both parameters. It explains the save parameter clearly, but file_path—the only required parameter—is never semantically defined, leaving ambiguity about how the target document is identified.

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?

States a specific action with a clear resource: tell the running Word instance to close an open document. It also identifies the purpose of releasing the file lock, which differentiates it from live-editing tools and file-mode operations.

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?

Gives an explicit use case: switch from live editing to file-mode tools. It does not name alternative tools like com_save_open_document, nor does it state when not to use it, so it stops short of full alternative routing.

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/nometalalchemist/KitchenSink4Word'

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