Skip to main content
Glama

extract_docx_text_offline

Read-onlyIdempotent

Extracts ordered clause paragraphs and hidden Word tracked-change deletions from local or Base64 .docx files without cloud calls, enabling offline document review and redline analysis.

Instructions

Extracts ordered clause paragraphs and hidden <w:delText> Word Track-Changes deletions from a local .docx file path or Base64-encoded .docx archive with zero cloud calls.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "extract_docx_text_offline"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathNoLocal path to an OpenXML .docx file on disk.
docxBase64NoBase64-encoded .docx binary string (raw Base64 or data:...;base64,... URI).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive, and closed-world, so the bar is lower, yet the description adds genuine behavioral detail: it returns ordered clause paragraphs, it surfaces hidden track-changes deletions that normal readers miss, and it makes no cloud calls. It does not disclose failure behavior for malformed or password-protected files, which keeps it below a 5.

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?

A single dense sentence with no filler, front-loading the extracted content and the offline constraint. It is slightly over-packed with angle-bracket XML notation, but every clause carries information.

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?

With no output schema, the description still tells the agent what comes back (ordered clause paragraphs and hidden deletions) and what network footprint to expect. Minor gaps remain around return format and behavior when no input parameter is supplied, but nothing critical to a correct call is missing.

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 description coverage is 100%, so the baseline is 3. The description restates both parameters (local path or Base64 archive) without adding format, precedence, or mutual-exclusion rules, and leaves unresolved what happens when both or neither of the two optional parameters are provided.

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 verb (extracts) and a specific resource (ordered clause paragraphs plus hidden <w:delText> track-changes deletions from a .docx), along with both accepted input forms. This is concrete enough that an agent can tell it is the text-extraction tool rather than a diff or risk-scan sibling without consulting any schema.

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?

Usage context is implied by 'local .docx file path or Base64-encoded .docx archive with zero cloud calls', which signals the offline/privacy-sensitive case. However, no explicit alternatives are named and no when-not conditions are given (e.g., which of the two input parameters to prefer, or what to do when neither is supplied).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.