Skip to main content
Glama

On 문서

RAG 조각

on_chunks
Read-only

[On 글꺼내기] RAG·검색용 조각(JSON). 제목(#)과 개조식 갈래(Ⅰ. □ ○ - · / 1. 가. 1) 가) / 제N조 / [별지])를 path 로 남기고, 표는 따로 조각으로. granularity=section(같은 갈래 글을 묶음, 기본) | block(덩이 하나 = 조각 하나). 자르기(토큰 상한)는 받는 쪽 몫. 보안 등급 표시 문서는 열쇠에 허용이 없으면 돌려주지 않는다. mask=true 면 가린 글.

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_chunks"
  }
}

Input Schema

NameRequiredDescriptionDefault
ocrNo글자 인식(스캔 쪽·그림) — 기본은 가벼운 그림 글만(PDF 의 한글 아닌 쪽 그림 몇 곳·2쪽 이하 스캔 문서, 몫에 안 셈). true 면 모든 스캔 쪽까지 읽고 쪽 수만큼 따로 셈(하루 30쪽), false 면 글자 인식 없이
maskNotrue 면 개인정보·접속 정보를 [전화번호 가림]처럼 가린 글로 받는다(올리기 관문)
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 이 빠르다
granularityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds non-obvious behavior on top: access control for security-graded documents when the key lacks permission, mask=true returning redacted text, tables being emitted as separate chunks, and chunk-size policy living with the consumer. It does not describe pagination or how many chunks come back, which keeps it short of a 5.

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 compact and front-loads the purpose ('RAG·검색용 조각(JSON)'), with no filler sentences. However, the body is packed with slash- and pipe-separated parenthetical notation and mixed Korean/English shorthand, which makes it hard to scan quickly for the granularity and access-control rules that matter most.

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

Completeness4/5

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

For a 7-parameter, zero-required extraction tool with no output schema, the definition covers the essentials: what the chunks contain (heading/branch path), how tables are handled, granularity semantics, masking, and the permission gate. It stops short of describing the returned JSON structure (e.g. field names per chunk) and count/limits, which would be the remaining gap given the absence of an output schema.

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 coverage is 86%, so the schema already documents ocr, mask, precise, file_url, file_name, and file_base64 in detail — the description largely restates those. Where it genuinely adds meaning is granularity, whose schema entry is a bare enum with no description; the definition explains what 'section' versus 'block' actually produce. That single substantive addition over a high-coverage schema supports the baseline rather than exceeding it.

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 states a specific action and output: RAG/search chunks as JSON, with heading (#) and outline-branch hierarchy (Ⅰ./□/○/1./가./제N조/[별지]) preserved as a 'path', and tables split out as separate chunks. That is far more concrete than the title 'RAG 조각'. It does not explicitly name when to prefer it over on_read or on_tables, so sibling differentiation is only implicit.

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?

It gives real in-tool guidance for one choice — granularity=section (default, groups same-branch text) vs block (one block = one chunk) — and states that token-limit splitting is the caller's responsibility. It also notes that security-graded documents are withheld without key permission. What is missing is any statement of when to reach for this tool rather than on_read or on_tables; usage is implied by the 'RAG·검색용' framing rather than spelled out.

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.