Skip to main content
Glama

open_document

Open a .docx file for reading and editing by unpacking the archive, parsing XML, and caching it in memory under a document handle for concurrent access.

Instructions

Open a .docx file for reading and editing.

Unpacks the DOCX archive, parses all XML parts, and caches them in memory under a handle. Multiple documents may be open concurrently, each under its own handle.

Args: path: Absolute path to the .docx file. document_handle: Optional handle to store this document under. Empty string uses the shared __default__ slot (legacy behavior); pass a unique value (e.g. a UUID) per concurrent session for isolation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
document_handleNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description adequately discloses the tool's behavior: unpacks archive, parses XML, caches in memory, allows multiple open documents. It also notes legacy behavior with the default handle. However, it does not mention error conditions or 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear opening, process explanation, and parameter descriptions. It is relatively concise, though the first sentence could be slightly tightened. Overall efficient.

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?

Given the tool's complexity (2 parameters, no annotations, output schema exists), the description covers the main functionality and concurrency. However, it lacks details on error handling, prerequisites (e.g., file must exist), and what the output contains. The presence of an output schema reduces the need for return value description.

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. It explains the 'path' parameter as an absolute path and 'document_handle' as optional with detailed legacy behavior and recommendation for unique handles. This adds significant meaning beyond the schema.

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 opens a .docx file for reading and editing, with a detailed explanation of the unpacking and caching process. It uniquely identifies itself among many sibling tools, as there is no other open tool.

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 provides context about concurrency and handle management but does not explicitly specify when to use this tool versus alternatives or when not to use it. Lack of exclusions or comparisons limits guidance.

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/SecurityRonin/docx-mcp'

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