Skip to main content
Glama

Inspect Word Document Architecture

inspect_word_document

Parses a .docx file to reveal its structure: paragraph counts, headings, tables, fonts, RTL flags, and metadata. Get detailed structural analysis for any Word document.

Instructions

Parses an existing .docx file and returns structural analysis (paragraph counts, headings, tables, detected fonts, RTL flags, metadata).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesPath to .docx file
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It accurately implies a read-only operation and reveals the scope of returned information, but does not mention potential errors or side effects (e.g., file not found, invalid format). The reuse of 'existing' reinforces non-mutating behavior.

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 one concise sentence that front-loads the action and resource, then provides a useful parenthetical list of output categories. No filler or repetition.

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?

There is no output schema, so the description must convey return value expectations. It lists several concrete analysis categories, which covers the essential outputs. It lacks details on return format, potential error conditions, or whether the file is opened read-only, but for a single-parameter parser, this is mostly adequate.

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 100% and the single parameter `filePath` already includes a clear description ('Path to .docx file'). The tool description merely echoes that the file must be an existing .docx, adding little 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 states a specific verb ('Parses') and resource ('an existing .docx file') and enumerates concrete outputs (paragraph counts, headings, tables, fonts, RTL flags, metadata). This clearly distinguishes it from sibling tools that create, modify, or convert documents.

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 context: use this when you need structural analysis of an existing document. However, it does not explicitly exclude alternatives or name specific siblings for cases like editing or conversion, so it lacks explicit when-not-to-use 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/MarwanDevSpace/mcp-arabic-ms-word'

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