Skip to main content
Glama
skaosqkf0-del

file-analyzer-mcp

read_docx

Read-onlyIdempotent

Extract body text, headings, and tables from .docx files, with configurable character limit. Returns structured data for AI interpretation.

Instructions

Word(.docx) 문서의 본문 문단, 제목, 표를 추출한다.

옛 형식(.doc)은 지원하지 않습니다 — Word에서 '다른 이름으로 저장 > .docx'로 변환한 뒤 다시 시도하세요.

Args: file_path: docx 파일 경로. max_chars: 본문 최대 글자 수 (기본 60000).

Returns: ReadDocxResponse: text(본문), headings(제목 스타일 문단), tables(행 단위 셀 텍스트).

Raises: ToolFailure: PATH_NOT_FOUND / NOT_A_FILE / FILE_TOO_LARGE / UNSUPPORTED_EXTENSION.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes읽을 .docx 파일 경로
max_charsNo본문 최대 글자 수. 초과분은 잘림

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
statusYes이 호출의 결과 상태
tablesYes
headingsYes
file_pathYes
truncatedYes
next_actionsNo이어서 호출하면 좋은 도구 목록
paragraph_countYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, covering safety. The description adds behavioral details such as the max_chars truncation, the extraction of text/headings/tables, and the specific error conditions (PATH_NOT_FOUND, FILE_TOO_LARGE, etc.), which go beyond the annotations and provide valuable runtime expectations.

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-organized with clear sections (purpose, limitation, args, returns, raises) and is front-loaded with the core action. While slightly verbose, every sentence is informative and earns its place, making it concise for the amount of context provided.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having an output schema, the description still explains the return structure (ReadDocxResponse with text, headings, tables) and enumerates all possible errors. Combined with the fully documented parameters and annotations, nothing essential is missing for an agent to call this tool correctly.

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 schema already documents both parameters. The description repeats the parameter meanings (file_path: docx 파일 경로, max_chars: 본문 최대 글자 수) without adding new details, making this a baseline score.

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 ('추출한다') and resource ('Word(.docx) 문서의 본문 문단, 제목, 표'), clearly distinguishing it from sibling tools like read_pdf and read_pptx by naming the exact file format. It also explicitly excludes .doc, making its scope unambiguous.

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 provides a clear usage context: it is for .docx files only, and specifically instructs the agent to convert .doc files before retrying. It does not compare against alternative readers, but the format-specific guidance is enough to direct correct usage.

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/skaosqkf0-del/MCP_test'

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