Skip to main content
Glama

read_document_image

Read-onlyIdempotent

Read embedded text from image-based documents (scanned PDFs or PNGs) when no text layer exists, enabling further analysis.

Instructions

텍스트가 없는 문서를 이미지로 받아 직접 판독합니다.

png는 원본을, pdf는 해당 페이지에 임베드된 이미지를 돌려줍니다. 스캔 PDF는 페이지 전체가 하나의 이미지이므로 이 방법으로 판독됩니다. 벡터로만 그려진 페이지는 꺼낼 수 없고, 그때는 오류가 사람이 할 일을 알려 줍니다.

이미지는 긴 변 1568px로 줄여서 넘어옵니다. 판독 정확도에는 영향이 없습니다.

판독한 내용은 원문 인용이 아닙니다. 요약에 쓸 때는 "(이미지 판독)"을 표기하세요. 텍스트 앵커와 같은 근거로 취급하면 안 됩니다.

Args: path: png 또는 pdf 경로. page: pdf의 페이지 번호.

Returns: list: 이미지 한 장과, 출처·크기·다음 단계를 적은 안내 문자열. (바이너리를 돌려주는 유일한 도구이므로 구조화 응답 규약에서 벗어납니다.)

Examples: - 사용: read_document가 등급 C를 돌려준 뒤 - 사용하지 않음: 등급 A·B 파일 → read_document로 텍스트를 읽는 게 정확합니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNopdf일 때 읽을 페이지 번호(1부터). png는 무시됩니다
pathYespng 파일, 또는 텍스트가 없는 pdf 파일
Behavior5/5

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

Beyond annotations (readOnly, idempotent), the description discloses that it returns binary data (the only tool to do so), resizes images to 1568px on the long side, and warns that the read content is not a direct quote, requiring the '(이미지 판독)' marker. It also describes error behavior for vector-only pages, providing rich behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized with clear sections (intro, args, returns, examples). The core purpose is front-loaded in the first sentence, and each subsequent sentence contributes essential details (format, resizing, usage, return) without redundancy. It is appropriately sized for the tool's complexity.

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?

With no output schema, the description compensates by explaining the return format (a list with image and guidance string) and noting it deviates from structured responses. It covers error cases for vector-only pages, provides usage examples, and explains how to handle the result in summaries, making it complete for an agent to call 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 provides complete descriptions for both 'path' and 'page' (100% coverage), including the note that page is ignored for png. The description only paraphrases these, adding no new semantic meaning beyond the schema's existing clarity, so it meets the baseline but does not exceed it.

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 it reads documents without text as images, with a specific verb ('직접 판독합니다') and resource ('텍스트가 없는 문서'). It distinguishes itself from the sibling 'read_document' by explaining it is for images/scanned PDFs and specifically for grade C files, making its purpose unambiguous.

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?

Explicit usage guidance is provided in the Examples section: use when 'read_document' returns grade C, and do not use for grade A/B files, where 'read_document' is more accurate. It also explains when it is applicable (scanned PDFs, embedded images) and when it is not (vector-only pages).

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/goods9999-ai/personal-file-analysis-mcp_test_20260826'

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