Skip to main content
Glama

On 문서

문서 읽기

on_read
Read-only

[On 글꺼내기] 한글(HWP·HWPX·HML)·PDF·워드·엑셀·파워포인트 문서의 글과 표를 마크다운으로 꺼낸다(파워포인트는 슬라이드마다 제목·발표자 노트까지). 합친 칸·표 안 표는 HTML 표(rowspan·colspan), 서식처럼 표로 짠 양식은 선 있는 곳만 표로, 각주는 문단 끝 「(주: …)」, 글머리표·문단 번호·자동 번호·한컴 기호(①·➔)·제목(#)·굵게까지 살린다. 쪽 수(한글)·문단 수·표 수 함께. 올리기 관문: 개인정보·접속 정보를 찾으면 맨 앞에 [올리기 관문] 요약(값 없이)을 붙이고, 보안 등급 표시(대외비 등)가 있는 문서는 열쇠에 허용이 없으면 돌려주지 않는다. mask 를 주지 않으면 주민등록번호·외국인등록번호·계좌·카드·여권번호가 있을 때 개인정보를 가린 글을 주고 그렇게 했다고 알린다(전화·메일·주소만 있으면 원문 + 알림). mask=true 면 늘 가린 글, mask=false 면 원문. precise=true 면 PDF 속 그림의 글·표까지 제자리에(정밀 읽기 — 열쇠 사용자만). 잰 값: 공공 한글 1,726개 한글 글자 재현율 99.87%(2026-11-12), 개발에 안 쓴 법령 별표 HWPX 50개 원본 대조 글자 정확도 0.999(2026-11-20)·표 구조 TEDS 0.981(2026-11-23).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "on_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
ocrNo글자 인식(스캔 쪽·그림) — 기본은 가벼운 그림 글만(PDF 의 한글 아닌 쪽 그림 몇 곳·2쪽 이하 스캔 문서, 몫에 안 셈). true 면 모든 스캔 쪽까지 읽고 쪽 수만큼 따로 셈(하루 30쪽), false 면 글자 인식 없이
maskNotrue 면 늘 가린 글, false 면 원문. 주지 않으면 주민·외국인등록번호·계좌·카드·여권번호가 있을 때만 가린 글
preciseNo정밀 읽기(PDF) — 그림 속 글·표를 제자리에 끼워 읽음. 기본 꺼짐, 시간이 더 걸림. 열쇠 사용자만(손님은 기본 읽기). 읽은 쪽은 MCP 글자 인식 하루 몫(30쪽, ocr 과 같은 몫)과 앱 글자 인식 하루 쪽 한도(40쪽)에 함께 세고, 둘 중 하나라도 다 쓰면 그 뒤로는 기본 읽기 — MCP 로만 쓰면 30쪽을 다 쓴 뒤부터
file_urlNo또는 이 서버의 15분 자료 주소(…/drop/…) — 명령을 쓸 수 있으면 curl -s --data-binary @파일 -H "x-file-name: 파일이름" https://onmunseo.kr/api/drop 이 돌려주는 url(올리기는 하루 도구 몫에 세지 않음), 아니면 웹 https://onmunseo.kr/start 「자료 올리기」에서 받은 주소. 그 밖의 주소는 받지 않음. 올릴 때 「한 번 읽으면 지우기」를 고른 자료는 내용을 꺼내는 도구가 한 번 읽은 뒤 지워짐(그 주소는 다시 못 읽음 — on_detect·on_meta 는 지우지 않음, 고르지 않으면 15분 동안 거듭 읽힘)
file_nameNo파일 이름(확장자로 형식을 가리고, 결과 파일 이름에 씀)
file_base64No문서 내용을 base64로(on_read·on_tables·on_chunks 는 한글·PDF·워드·엑셀·파워포인트, 고치기·PDF·쪽 그림은 한글 .hwp/.hwpx) — 큰 파일은 file_url 이 빠르다

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already establish readOnly/non-destructive/closed-world, and the description adds substantial context beyond them: the [올리기 관문] PII summary, withholding of security-classified documents without a key, default masking rules for resident/card/passport numbers, daily quotas (30 OCR pages via MCP, 40 via app), the 15-minute drop URL lifetime, and one-time-read deletion. However, a large share of the prose is benchmark marketing (99.87% recall, TEDS 0.981, dated runs) that conveys no behavioral constraint, so the signal-to-noise ratio is poor for a tool already covered by annotations.

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

Conciseness3/5

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

It is front-loaded correctly — the extraction capability comes first and options follow — but it is a dense run-on wall of parenthetical clauses. The closing benchmark sentence with three dated accuracy figures does not help an agent decide or invoke anything and should be cut, which would meaningfully shrink the definition.

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

Completeness3/5

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

With 6 optional parameters, no output schema, and only read-only annotations, the description does need to carry weight, and it covers quotas, masking, security gating, and retention. Gaps remain: it does not state that at least one of file_url/file_base64/file_name must be supplied, does not describe the returned markdown structure or truncation behavior for large documents, and does not say how to recover when a one-time-read URL has already been consumed.

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% and the parameter descriptions are themselves extremely detailed, including the precise/ocr shared quota interaction and the file_url upload instructions. The description body restates the mask and precise semantics (key-user restriction, default masking) rather than adding syntax, format, or precedence rules not already in the schema; the one extra hint is that larger files should use file_url, which is also present in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('[On 글꺼내기] 한글(HWP·HWPX·HML)·PDF·워드·엑셀·파워포인트 문서의 글과 표를 마크다운으로 꺼낸다') and spells out what is preserved (merged cells, nested tables, footnotes, headings, bold) plus auxiliary counts. It never explicitly contrasts itself with siblings such as on_tables or on_chunks, so an agent must infer that this is the general full-document extractor rather than the table-only or chunked variant.

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

Usage Guidelines3/5

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

Usage guidance exists at the option level — when to set mask=true/false/omit, when precise=true is needed and that it requires a key user, when ocr=true is worth its quota. What is missing is tool-selection guidance: no statement of when to prefer on_tables, on_chunks, on_detect, or on_meta instead, aside from the incidental note that those two do not trigger one-time-read deletion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.