Skip to main content
Glama
minheyok-choi

file-analysis-mcp

scan_folder

Read-onlyIdempotent

List files in a folder with extension counts and metadata like size and modified date to quickly assess document composition.

Instructions

폴더 안의 대상 파일(pdf/docx/pptx/svg/png) 목록과 확장자별 개수를 조회합니다.

문서 내용을 읽지 않고 메타데이터(경로/크기/수정일)만 가볍게 훑어보는 도구입니다. 폴더 안에 어떤 파일이 몇 개 있는지 빠르게 확인하고 싶을 때 사용하세요.

Returns: ScanFolderResponse: files[]에 경로/이름/확장자/크기/수정일이 담깁니다. 파일이 max_files보다 많으면 list_truncated=True이고, by_extension의 개수는 상한과 무관하게 항상 전체 매칭 파일 기준입니다.

Examples: - 사용: "이 폴더에 어떤 문서들이 있어?", "pdf 몇 개야?" - 사용하지 않음: 파일 내용까지 요약하고 싶을 때 → analyze_folder - 사용하지 않음: 하위 폴더 구조/통계까지 보고 싶을 때 → analyze_folder_structure

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_filesNo목록에 포함할 최대 파일 수(컨텍스트 보호용 상한). 초과분은 스킵되며 list_truncated=True로 표시됩니다(개수 통계는 항상 전체 기준).
recursiveNo하위 폴더까지 재귀적으로 탐색할지 여부
extensionsNo필터링할 확장자 목록(예: ['.pdf', '.png']). 생략하면 pdf/docx/pptx/svg/png 전체를 대상으로 함
folder_pathYes스캔할 폴더의 절대 경로

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYes
folderYes
statusYesOK 또는 PARTIAL 등 처리 결과 상태
total_filesYes실제 반환된 파일 수 (= len(files))
by_extensionYes상한과 무관하게 전체 매칭 파일 기준 확장자별 개수
next_actionsNo
total_matchedYes조건에 맞는 전체 파일 수(상한 적용 전)
list_truncatedYestotal_matched > total_files이면 True. 목록이 잘렸다는 뜻
Behavior5/5

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

While annotations already declare readOnlyHint=true and idempotentHint=true, the description adds crucial behavioral context beyond this: it explicitly states that document contents are NOT read, only metadata (path/size/modified date). It also discloses truncation behavior (list_truncated flag, by_extension always full). These details inform an agent about side-effects and guarantees that annotations alone do not convey.

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 a clear first sentence stating the core purpose, followed by a behavioral note, return format details, and usage examples. It is slightly verbose (multiple paragraphs) but every section earns its place, front-loading the key action and scoping. It could be tightened, but structure is strong.

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 tool's moderate complexity (4 parameters, output schema, multiple siblings), the description covers all essential aspects: what it returns (files array fields and by_extension counts), truncation edge-case behavior, and guidance on when to use alternatives. With an output schema present, the description need not detail return types, yet it already does so sufficiently. No critical information is missing for correct invocation.

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?

Input schema has 100% description coverage, so the baseline is 3. The description adds marginal value by reinforcing that max_files truncates the list but not the by_extension counts, which is already implied in the schema's max_files description. Since the schema documents all parameters fully, the description does not meaningfully augment parameter semantics beyond what is already structured.

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's function: it lists target files (pdf/docx/pptx/svg/png) in a folder and provides counts by extension. It explicitly distinguishes itself from siblings by stating it reads only metadata, not content, and names specific alternatives (analyze_folder, analyze_folder_structure) with conditions for their use. This makes the tool's purpose unmistakable and differentiates it from the four siblings.

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?

The description provides explicit usage guidance: use when you want to quickly check which documents exist and how many there are, with example queries. It also gives clear exclusions: do not use for content summarization (use analyze_folder) or for subfolder structure/statistics (use analyze_folder_structure). These concrete when-to-use and when-not-to-use instructions leave no ambiguity for an agent.

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