mcp-arabic-ms-word
This MCP server (WordMasterAgent) provides tools to create, modify, inspect, and convert Microsoft Word documents with full Arabic RTL support. Key capabilities include:
Create Word documents with custom page setup, margins, orientation, metadata, and Arabic fonts.
Add content such as styled paragraphs, headings (H1–H6), RTL tables, embedded images, and headers/footers with Arabic page numbers.
Inspect documents to extract structural analysis like paragraph/heading counts, fonts, RTL flags, and metadata.
Convert Word to Markdown for easy reading or further processing.
Modify Word XML directly (e.g., replace text or elements in document.xml) or decompress and modify internal XML files with regex for surgical changes.
Repair Arabic text formatting by fixing issues like inverted brackets, digit normalization, excessive kashidas, and Alef/Yeh normalization.
Inject template data by merging JSON key-value placeholders into .docx templates.
Generate documents from intent by describing the document in plain text and having the server automatically produce a fully formatted Word document.
The server is optimized for Arabic users with RTL layout support and common Arabic fonts.
Embeds JPEG (and PNG) images into Word documents with customizable dimensions and alignment.
Converts Word documents to structured Markdown format, enabling easy extraction and reuse of content.
Decompresses .docx archives and performs surgical modification of internal XML files such as word/document.xml, word/styles.xml, and word/numbering.xml.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-arabic-ms-wordCreate a formal Arabic meeting minutes document"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
خادم خبير وورد العربي — MCP Arabic Microsoft Word Server
خادم بروتوكول MCP المتقدم (WordMasterAgent) المتخصص في إنشاء وتنسيق وحقن وفحص وإصلاح نصوص وتفكيك شفرات XML لمستندات Microsoft Word بدعم كامل ودقيق للغة العربية والاتجاه من اليمين إلى اليسار (RTL)، مزود بنظام RAG للتفكير المنطقي، وجراحة OpenXML وضبط BiDi، وفحص الصفحات الصوري (Pages/)، وبروتوكول نظافة مساحة العمل.
🌟 المحتويات | Table of Contents
Related MCP server: docx-mcp
🇸🇦 العربية
🚀 المميزات الرئيسية
نظام التفكير المنطقي واسترجاع المعرفة التوليدي (
RAG Knowledge & Intent Engine):استرجاع دلالي لأنماط المستندات (خطاب رسمي، بحث أكاديمي، تقرير تنفيذي، عقد قانوني، دليل سياسات، محضر اجتماع).
استنتاج الهيكل المناسب، تدرج العناوين، توزيع الجداول، وحساب معامل الثقة وخطوات التفكير المنطقي.
جراحة OpenXML وإصلاح انحراف العناوين والنصوص (
BiDi OpenXML Surgery):القضاء التام على انحراف العناوين نحو اليسار بفضل ضبط خصائص الفقرة
<w:jc w:val="right"/>ومنع تضارب<w:bidi/>.منع انفصال العناوين المعلقة عن متونها في نهايات الصفحات (
w:keepNext).حماية الآيات القرآنية والأحاديث الشريفة من الانشطار عبر فواصل الصفحات (
w:keepLines).ضبط محاذاة المتون العربية بهوامش متطابقة (
w:bidi+w:jc="both").
نظام المعاينة الصورية للصفحات (
Pages/Directory):تحويل المستند إلى PDF وتوليد صور عالية الدقة (150/300 DPI) لكل صفحة داخل مجلد فرعي نظيف ومستقل باسم
Pages/.فحص وكشف العيوب البصرية (العناوين المعلقة، الفراغات الزائدة، توازن الأسطر).
بروتوكول نظافة مساحة العمل (Clean Workspace Protocol):
عدم إنشاء أي ملفات بايثون أو سكربتات مبعثرة في مجلد المستخدم الأساسي، وحصر مخرجات العمل في المستند الأصلي وملف PDF ومجلد
Pages/.
دعم كامل للتيبوغرافيا وإصلاح النصوص العربية:
تصحيح الأقواس المقلوبة، توحيد الأرقام (شرقية/غربية)، وتنسيق همزات الألف والياء.
أتمتة ذكية دون الحاجة لأوامر نصية (
Zero Slash-Commands):محرك تحليل المقاصد (
resolve_and_execute_document_intent) يفهم طلباتك النصية العادية ويقوم بتوليد وتصحيح المستند تلقائياً استناداً للـ RAG.
🧠 نظام التفكير المنطقي RAG واستدعاء المقاصد الذكية
يحتوي السيرفر على محرك معرفي RAG داخلي يقوم بتفسير وصف المستخدم وتحويله إلى خطة توليد هندسية دقيقة:
تحديد النمط المعماري (Archetype): مطابقة الطلب مع أنماط الوثائق المعتمدة.
اختيار الخط والألوان: ضبط الخطوط العربية (
Amiriللخطابات،Traditional Arabicللأبحاث،Cairoللتقارير) ودرجات الألوان الرسمية (#003366,#1F4E78).بناء الأقسام والجداول والترقيم: إنشاء الهيكل الكامل تلقائياً مع تذييل الصفحات الديناميكي.
جراحة BiDi التلقائية: تطبيق مسار الجراحة فوراً لضمان خلو المستند من أي انحراف.
🔬 حل معضلة انحراف العناوين (BiDi OpenXML Surgery)
في بنية OpenXML، يؤدي وضع <w:bidi/> داخل خصائص الفقرة مع <w:jc w:val="right"/> إلى تفسيره كجهة يمنى منطقية لقارئ LTR، مما يجعله يعرض فيزيائياً في أقصى يسار الصفحة!
المعادلة المعتمدة في السيرفر:
العناوين:
<w:jc w:val="right"/>+<w:keepNext/>+<w:widowControl/>مع وسم<w:rtl/>في مسارات النصوص.متون الفقرات:
<w:bidi/>+<w:jc w:val="both"/>مع وسم<w:rtl/>.الآيات والأحاديث:
<w:keepLines/>+<w:bidi/>+ تمييز لوني.المقاطع الإنجليزية:
<w:jc w:val="left"/>خالية تماماً من وسومbidiوrtl.
🛠️ فهرس الأدوات المتاحة (15 Tools)
اسم الأداة | الوصف والتطبيق |
| توليد مستند كامل مبني على نظام RAG للتفكير المنطقي من خلال الوصف العادي. |
| جراحة OpenXML وضبط محاذاة العناوين لليمين ومنع انشطار الآيات وحماية المتون وتوليد الترقيم. |
| تحويل المستند لصور عالية الدقة داخل مجلد |
| فحص وإصلاح عيوب التيبوغرافيا العربية للأقواس المقلوبة والأرقام والألف والياء والمسافات. |
| تفكيك أرشيف docx والتعديل الجراحي بالـ Regex على أي ملف XML داخلي (document, styles, numbering). |
| إنشاء مستند |
| إدراج فقرة نصية منسقة (الخط، الحجم، اللون، الاتجاه، الكشيدة، المسافات). |
| إدراج عناوين رئيسية أو فرعية (H1-H6) بلون وتنسيق مخصص. |
| إدراج جدول بيانات متوافق مع الاتجاه العربي مع ألوان الهيدر والصفوف. |
| تضمين صور (PNG/JPEG) داخل المستند بأبعاد ومحاذاة محددة. |
| ضبط رأس وتذييل المستند وترقيم الصفحات العربي ( |
| فحص مستند وورد واستخراج عدد الفقرات والعناوين والجداول والخطوط المكتشفة. |
| استخراج محتوى مستند الوورد وتحويله إلى صيغة Markdown منظمة. |
| دمج بيانات JSON في قالب وورد يحتوي على متغيرات |
| استبدال نصوص أو عناصر شفرة WordprocessingML XML مباشرة. |
📦 طريقة التركيب والتشغيل عبر npx
npx -y mcp-arabic-ms-word@latest⚙️ إعدادات العميل القياسية (mcp_config.json)
{
"mcpServers": {
"mcp-arabic-ms-word": {
"command": "npx",
"args": [
"-y",
"mcp-arabic-ms-word@latest"
]
}
}
}🇬🇧 English Version
Key Features
RAG Knowledge & Cognitive Intent Engine: Semantic archetype retrieval for instant high-precision document synthesis with structured reasoning plans.
BiDi OpenXML Surgery Engine: Deep OpenXML surgery preventing heading drift, orphan headings (
keepNext), split verses (keepLines), and ensuring clean margin-to-margin body justification.Visual Page Audit &
Pages/Workflow: Automatically renders Word documents to high-resolution page images into an isolatedPages/directory with automated layout defect diagnostics.Clean Workspace Protocol: Prevents file pollution by keeping all scratch files internal and delivering pristine
.docx,.pdf, andPages/artifacts.Arabic Text Repair Engine: Automatic correction of inverted brackets in RTL text, digit standardization (Eastern/Western), whitespace trimming, and Alef/Yeh normalization.
Universal WordMasterAgent Architecture: Governed by
AGENTS.mdorchestrating 15 specialized MCP tools across 7 master skills.
📜 الترخيص والملكية | License & Author
المؤلف والحقوق | Author: MarwanDevSpace
الترخيص | License: MIT License
Available Tools
10 toolsadd_heading_to_documentAdd Heading to DocumentA
Appends a styled Heading (H1-H6) to a Word document with custom font size, color, alignment, and RTL support.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Heading text | |
| level | No | Heading level 1-6 | |
| colorHex | No | Text color hex | 1F4E78 |
| filePath | Yes | Path to .docx file | |
| alignment | No | Alignment | right |
| direction | No | Text direction | rtl |
| fontFamily | No | Font name | |
| fontSizePt | No | Font size in pt |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses that the tool appends (a mutation) but lacks key behavioral details: whether the file must already exist, if the file is modified in place, what happens on error, or if the heading replaces existing content. This is a significant gap for a file-modifying tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, informative sentence that is front-loaded with the core action and includes the most relevant customization options. No wasted words or redundant details.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For an 8-parameter mutation tool with no output schema and no annotations, this description is minimally adequate. It covers the core purpose and highlights key parameters, but omits important context about file handling (e.g., creating vs. modifying), side effects, and failure behavior, which an agent would need to invoke it safely.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema fully documents all 8 parameters. The description lists categories like font size, color, alignment, and RTL support but does not add new information beyond what the schema already provides. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool appends a styled Heading (H1-H6) to a Word document, specifying the resource (Word document) and the action (appending a heading). It distinguishes itself from sibling tools like add_paragraph_to_document by explicitly targeting headings with style customization.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied: use this tool when you need to add a heading to a Word document. However, there is no explicit guidance on when to prefer this over add_paragraph_to_document or other siblings, nor any exclusions or prerequisites beyond the obvious heading intent.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
add_image_to_documentAdd Image to DocumentA
Embeds a PNG/JPEG image into a Word document with specified width, height, and alignment.
| Name | Required | Description | Default |
|---|---|---|---|
| align | No | Image alignment | center |
| widthPx | No | Display width in pixels | |
| filePath | Yes | Path to target .docx file | |
| heightPx | No | Display height in pixels | |
| imagePath | Yes | Path to input image file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action but does not mention whether the target document must already exist, whether it modifies the file in place, permission requirements, or error behavior. For a mutation tool, this is a significant transparency gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that is concise and front-loaded with the essential action. It avoids redundancy and every phrase contributes to understanding the tool's purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The schema covers parameters well, and the description gives a clear purpose. However, it fails to mention important context such as whether the document must already exist, what happens if the file path is invalid, or any side effects like modifying the document in place. This is adequate but with noticeable gaps for a document-editing tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema provides 100% coverage for all five parameters, with descriptions for each. The description only repeats 'width, height, and alignment' which adds little beyond what the schema already specifies. Since schema coverage is high, a baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Embeds a PNG/JPEG image into a Word document'. It specifies the action (embeds), the resource (image into a Word document), and mentions key parameters (width, height, alignment). This distinguishes it from sibling tools that add paragraphs, headings, or tables.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context that the tool is for inserting images into Word documents. While it does not explicitly mention when not to use it or name alternative tools, the context is unambiguous given the sibling list. It lacks explicit exclusions, so it earns a 4 rather than a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
add_paragraph_to_documentAdd Styled Paragraph to DocumentA
Appends a styled Arabic or English paragraph to a Word document with font, size, RTL, kashida justification, and line spacing.
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | Bold weight | |
| text | Yes | Paragraph text content | |
| italic | No | Italic style | |
| colorHex | No | Text hex color | 000000 |
| filePath | Yes | Path to .docx file | |
| alignment | No | Paragraph alignment | right |
| direction | No | Text direction | rtl |
| underline | No | Underline style | |
| fontFamily | No | Font name (e.g. Amiri, Traditional Arabic, Cairo) | |
| fontSizePt | No | Font size in pt | |
| spaceAfterPt | No | Space after in pt | |
| spaceBeforePt | No | Space before in pt | |
| lineSpacingMultiplier | No | Line spacing multiplier |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must fully disclose behavior. It says 'appends' (a mutation) and mentions RTL/kashida support, but it omits file prerequisites (e.g., document must exist), side effects (modifies file in place), and return values, leaving the agent uncertain about runtime behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is one concise sentence, front-loaded with the core action ('Appends a styled paragraph') and includes only relevant details. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite its clarity, this 13-parameter tool with no output schema and no annotations would benefit from additional context about return behavior, file handling, or error cases. The description covers the main purpose but leaves operational gaps that an agent must infer.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%—every parameter has a description. The tool description adds little semantic value beyond listing a few style features (font, size, RTL) that map to schema properties. This matches the baseline of 3 for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action: 'Appends a styled Arabic or English paragraph to a Word document' and lists key formatting features (font, size, RTL, kashida, line spacing). This clearly distinguishes it from sibling tools like add_heading_to_document and add_table_to_document.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description makes clear it is for adding styled paragraphs to Word documents, and sibling tool names imply alternatives. However, it does not explicitly state when not to use the tool or name alternative tools for other content types.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
add_table_to_documentAdd RTL Table to DocumentA
Appends a structured table with RTL layout (w:bidiVisual), header styling, custom cell shading, and borders to a Word document.
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Row data | |
| isRtl | No | RTL layout flag | |
| columns | Yes | Column header definitions | |
| filePath | Yes | Path to .docx file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of disclosing behavior. It clearly states the operation is an append and lists formatting details (RTL, header styling, shading, borders). However, it does not mention whether an existing document is required, how the file is saved, or any error conditions, leaving some behavioral uncertainty.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One sentence, efficient and front-loaded with the action ('Appends'), immediately clear. No unnecessary words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description plus fully-covered schema provide a clear picture of what the tool does and how to invoke it. The main missing element is explicit guidance on prerequisites (e.g., existing file), but the operation is simple enough that the description feels adequate.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema covers all parameters with descriptions, so the baseline is 3. The description does not add additional meaning beyond the schema; it references styling and RTL but does not map them to specific parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses the specific verb 'Appends' and identifies the resource as 'a structured table with RTL layout... to a Word document,' clearly distinguishing it from sibling tools that handle paragraphs, headings, images, etc.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for adding tables to Word documents but does not explicitly state when to use this tool versus alternatives or exclude other scenarios. Sibling tool names provide context, but the description itself lacks comparison.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
convert_word_to_markdownConvert Docx to MarkdownA
Extracts formatted headings and paragraph text from a Word document into structured Markdown for easy reading and analysis.
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to target .docx file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description itself must disclose behavior. It does explain what content is extracted (headings and paragraphs) and the output format (Markdown), but it does not mention whether the tool is read-only, whether it creates a new file or returns a string, or what happens to non-heading/paragraph elements like tables. This leaves notable behavioral ambiguity.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that front-loads the tool's purpose and provides sufficient detail in minimal words. Every word earns its place, with no redundancy or fluff.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (1 parameter, no output schema), the description is nearly complete. It clearly communicates the tool's function, though it would benefit from specifying the return format (e.g., Markdown string vs. saved file) to eliminate ambiguity. The sibling context makes the conversion purpose obvious.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for the single required parameter 'filePath', and the description refers to the target Word document. The tool description does not add parameter-specific details beyond what the schema already provides, so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Extracts formatted headings and paragraph text from a Word document into structured Markdown.' The verb 'Extracts' and the resource 'Word document' are specific, and the outcome 'structured Markdown' distinguishes it from sibling tools like create_word_document or inspect_word_document.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies use when the user wants a readable, Markdown-formatted version of a .docx file's headings and paragraphs for analysis. However, it does not explicitly contrast with sibling tools or state when not to use it, such as when tables or images are needed.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
create_word_documentCreate Arabic MS Word DocumentA
Creates a new Microsoft Word (.docx) document with custom page setup, margins, metadata, and default Arabic font and RTL settings.
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title metadata | |
| author | No | Document author metadata | |
| subject | No | Document subject metadata | |
| filePath | Yes | Output .docx file path relative to workspace or absolute | |
| pageSize | No | Paper size | A4 |
| defaultFont | No | Default Arabic font family | Amiri |
| marginTopCm | No | Top margin in cm | |
| orientation | No | Page orientation | portrait |
| marginLeftCm | No | Left margin in cm | |
| marginRightCm | No | Right margin in cm | |
| marginBottomCm | No | Bottom margin in cm |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of disclosing behavioral traits. It mentions RTL settings and Arabic font, but omits critical details such as whether existing files are overwritten, whether directories are created, or what the return value is. For a file-writing tool, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence of about 20 words, with the primary action front-loaded. It contains no filler or redundant information, every phrase contributes meaning.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description adequately covers the core creation behavior and the schema is thorough, but it does not address file handling (e.g., overwrite behavior), return values, or that the document starts empty. Given the absence of annotations and output schema, more operational details would be beneficial.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema documents all 11 parameters with descriptions, giving 100% coverage, so the baseline is 3. The description adds value by grouping parameters into semantic categories (page setup, margins, metadata) and noting the RTL default behavior, which is not explicitly in the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Creates' with a clear resource 'new Microsoft Word (.docx) document' and enumerates key capabilities such as page setup, margins, metadata, and Arabic font/RTL settings. It is distinct from sibling tools that inspect or modify existing documents, making the purpose unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies this tool is for creating a new document, but it does not explicitly state when to use it versus alternatives, nor does it mention that content addition should be handled by sibling tools like add_paragraph_to_document. No exclusion criteria or usage context beyond creation is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
inject_template_dataInject Data into Docx TemplateA
Merges JSON key-value data into a .docx template containing tags (e.g., {name}, {#items}).
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Key-value data object | |
| outputPath | Yes | Output .docx file path | |
| templatePath | Yes | Path to input template .docx |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, but it omits critical behaviors: whether the original template file is modified or a new file is written (despite outputPath being a required parameter), what happens with missing or extra keys, and error conditions. The description only states a high-level merge action without disclosing 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.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no filler. It earns its place by stating the verb, resource, and an illustrative example without redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool that writes files and handles template logic, the description is under-specified. It lacks guidance on output behavior (e.g., whether outputPath creates a new file or overwrites), array/loop handling details, and any return values or error messages. The example tags hint at features but do not explain them, leaving significant gaps for an agent to use the tool safely.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already provides 100% coverage for parameter descriptions, giving the baseline of 3. The description adds meaningful semantics by explaining that data keys correspond to tags in the template and hints at loop support with {#items}, which clarifies the data parameter's structure beyond 'Key-value data object'.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Merges') and resource ('.docx template containing tags'), clearly distinguishing it from sibling tools like add_paragraph or create_word_document. The example tags ({name}, {#items}) ground the tool's function in concrete template syntax.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage: use when you have a .docx template with tags and JSON data to fill in. It does not explicitly name alternatives or exclusions, but the tag-based context is clear enough to guide selection among document manipulation tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
inspect_word_documentInspect Word Document ArchitectureA
Parses an existing .docx file and returns structural analysis (paragraph counts, headings, tables, detected fonts, RTL flags, metadata).
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to .docx file |
TDQS
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.
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.
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.
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.
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.
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.
modify_word_xml_elementModify WordprocessingML XML ElementB
Performs low-level XML text node or tag modification in document.xml for deep customization.
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to target .docx file | |
| outputPath | No | Optional output path | |
| targetText | Yes | Target string to find in document.xml | |
| replacementText | Yes | Replacement string or XML payload |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must carry the full burden of behavioral disclosure. It identifies the target (document.xml) but omits critical details such as whether the modification is in-place or uses outputPath, whether invalid XML could corrupt the document, or any prerequisite knowledge needed. This is a significant transparency gap for a low-level mutation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-front-loaded sentence that immediately establishes the verb, resource, and purpose. Every word earns its place, with no redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a low-level tool with no annotations and no output schema, the description is too minimal. It does not explain the tool's side effects, the meaning of outputPath, or how to use it safely. Given the complexity of raw XML modification, more context is needed to prevent misuse.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description adds no extra parameter meaning beyond what the schema already provides, aside from a generic mention of text nodes/tags, which aligns with targetText/replacementText but does not enhance understanding.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Performs low-level XML text node or tag modification') and the exact resource ('document.xml'), distinguishing it from sibling tools that operate at higher levels of abstraction. The phrase 'for deep customization' reinforces its unique role.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for 'deep customization' but does not explicitly state when this tool should be preferred over siblings or when it should not be used. No alternatives are named, and the guidance remains implicit rather than explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool targets a distinct document operation: creation, inspection, adding specific content types (paragraph, heading, table, image, header/footer), low-level XML editing, template injection, and conversion. There is no overlap between any two tools.
All tool names follow a consistent verb_noun snake_case pattern, with a clear family of 'add_X_to_document' tools. The verbs accurately describe the action and the nouns specify the target, making the set predictable.
With 10 tools, the server covers create, inspect, content addition, templating, low-level customization, and conversion. The count is well-scoped for a document manipulation server, with each tool serving a distinct purpose.
The server covers the core document lifecycle: create, inspect, add content, template injection, and conversion. Missing operations like deleting or updating existing elements are compensable via low-level XML modification, but there is no high-level remove/update tool, which is a minor gap.
Maintenance
Related MCP Connectors
Generate, edit, merge, translate and PDF-convert PowerPoint (.pptx) over MCP. 8 tools.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Real .docx and .xlsx files from structured data, with automatic Hebrew/Arabic RTL.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnterprise-grade document editing and management server that enables AI-powered operations on Microsoft Word DOCX files, including creating, editing, formatting, and exporting documents through both MCP protocol and RESTful API.3MIT
- AlicenseBqualityCmaintenanceAn MCP server for reading, editing, and validating Microsoft Word documents with specialized support for track changes, comments, and footnotes. It enables structural auditing, heading extraction, and precise OOXML-level document manipulation through natural language tools.10043MIT
- AlicenseNot gradedqualityCmaintenanceA powerful Word document editing MCP server that provides complete document manipulation capabilities, including creation, editing, formatting, tables, images, and advanced features like footnotes and interface document generation.3MIT
- AlicenseAqualityDmaintenanceMCP server for Word document (.docx) creation and manipulation — the production-grade document automation tool for AI agents.938MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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