Skip to main content
Glama
minheyok-choi

file-analysis-mcp

read_document

Read-onlyIdempotent

Extract full text from a single PDF, DOCX, PPTX, or SVG file for detailed review or to continue truncated summaries. Specify file path and optional max characters.

Instructions

문서 파일(pdf/docx/pptx/svg) 하나의 텍스트를 추출합니다. 요약은 하지 않습니다.

scan_folder/analyze_folder에서 찾은 파일 중 하나를 더 자세히 보고 싶을 때, 또는 analyze_folder의 일괄 요약이 잘렸을 때(truncated=True) 이어서 읽을 때 씁니다.

Returns: ReadDocumentResponse: text에 원문(잘렸으면 앞부분)이 담깁니다. truncated=Truemax_chars를 늘려 다시 호출해 나머지를 볼 수 있습니다.

Examples: - 사용: "이 pdf 파일 내용 좀 자세히 보여줘" - 사용하지 않음: png 이미지 → read_image_text - 사용하지 않음: 폴더 전체를 한 번에 훑고 싶을 때 → analyze_folder

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes읽을 문서의 절대 경로 (pdf, docx, pptx, svg)
max_charsNo반환할 최대 문자 수(컨텍스트 보호용 절단)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
textYes
statusYesOK 또는 PARTIAL 등 처리 결과 상태
metadataYes
extensionYes
truncatedYes
next_actionsNo
Behavior5/5

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

Annotations already indicate readOnlyHint, idempotentHint, and destructiveHint. The description adds valuable behavioral context: it returns the original text (possibly truncated), and explains the truncation contract (increase max_chars to retrieve the rest). This goes beyond annotations and clarifies the tool's output semantics.

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 statement of purpose, usage context, return details, and examples. It is slightly lengthy but every section earns its place, and the core purpose is front-loaded. Minor redundancy with the annotation 'readOnlyHint' doesn't detract significantly.

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?

Given the output schema exists and the tool is simple, the description covers all necessary aspects: what it does, when to use it, how output is truncated, and how to recover full text. The examples reinforce correct usage. Nothing critical is missing for an agent to call it 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 parameters are fully documented. The description reinforces the purpose of max_chars in the truncation note but doesn't add new semantic details beyond the schema. Baseline 3 is appropriate when the schema carries the full parameter documentation.

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 extracts text from document files (pdf/docx/pptx/svg) and explicitly notes it does not summarize. It differentiates from siblings by naming the specific use case (inspecting files from scan_folder/analyze_folder) and alternative tools (read_image_text, analyze_folder), making the purpose unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use (detailed look at a found file, or continuing a truncated analyze_folder summary) and when-not-to-use (PNG images -> read_image_text, folder-wide scanning -> analyze_folder). Also gives a concrete example of user phrasing, leaving no ambiguity about when this tool should be selected.

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/minheyok-choi/fileanalyzer_mcp-testmonial'

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