Skip to main content
Glama
kyoungjongkil

file-analyzer

analyze_structure

Read-onlyIdempotent

Inspect a file's structural layout—page counts, heading trees, slide compositions, sheet dimensions—before summarizing, using verified metrics per format.

Instructions

파일 하나의 구조를 분석한다. 요약 전에 이걸 먼저 보면 문서 형태가 잡힌다.

여기서 돌려주는 수치(페이지 수·헤딩 트리·슬라이드 구성·시트 크기)는 코드가 센 것이라 정확하다. 추정하지 말고 이 값을 인용하라.

포맷별로 돌려주는 것: pdf - 페이지 수, 페이지별 글자수·이미지수, 북마크 목차, 스캔본 경고 docx - 헤딩 트리, 문단/표/이미지 수, 작성자 등 속성 pptx - 슬라이드별 제목·레이아웃·도형 구성·발표자 노트 분량 xlsx - 시트 목록, 각 시트 행/열 크기, 헤더 행 svg - viewBox, 요소 종류별 개수, 레이어 이름, 텍스트 노드 png - 해상도·모드·DPI·EXIF (이미지 내용은 read_image로 확인) md - 헤딩 목차, 줄 수

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes폴더 기준 상대경로. list_documents가 준 path를 그대로.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
extYes
fileYes
kindYespdf | docx | pptx | xlsx | svg | raster_image | markdown | text
stageYes문서 분석 워크플로에서 지금 위치한 단계
statusYes이 호출의 결과 상태
warningNo스캔 PDF 등 내용을 못 읽을 수 있는 경우의 경고
modifiedYes
structureYes포맷별 구조. 키 구성이 포맷마다 다릅니다. kind를 먼저 보세요.
size_bytesYes
next_actionsNo이어서 호출하면 좋은 도구 목록
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds value by asserting the returned metrics are exact ('코드가 센 것이라 정확하다') and instructs the agent to cite them rather than estimate. It also details format-specific outputs, which goes beyond annotations.

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: a concise intro, an important accuracy note, and a clear bulleted list by format. It is somewhat long but each bullet adds specific, useful information. Front-loading of purpose and usage guidance is effective.

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?

The description is comprehensive for an analysis tool. It covers the tool's role relative to summarization, the guarantee of accurate numbers, and details what is returned for all seven supported formats. It even notes that PNG image content is handled by read_image. With an output schema present, this fully equips an agent to invoke the 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?

The schema already fully describes the single 'path' parameter ('폴더 기준 상대경로. list_documents가 준 path를 그대로.') with 100% coverage. The description does not add any additional parameter semantics, so the baseline score of 3 is appropriate.

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 analyzes the structure of a single file ('파일 하나의 구조를 분석한다'), and the context of '요약 전에' positions it as a pre-summarization step. It is explicit about being structure-focused rather than content-focused, distinguishing it from siblings like extract_content and read_image.

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 guidance: '요약 전에 이걸 먼저 보면' (use before summarizing). Also names an alternative for PNG content: '이미지 내용은 read_image로 확인' (for image content, use read_image), directing the agent away from this tool for that specific case.

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/kyoungjongkil/fileanalyzer_mcp_testmonial'

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