Skip to main content
Glama

On 문서

형식 알아보기

on_detect
Read-only

[On 글꺼내기] 파일 머리와 안쪽 짜임으로 형식을 알아본다(hwp·hwp3·hwpx·hwpml·pdf·docx·xlsx·pptx·예전 오피스·그림). 한글은 판(5.1.0.1 꼴)·압축·암호·배포용, PDF 는 판·암호까지.

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

Input Schema

NameRequiredDescriptionDefault
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

A3.5/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the description's job is to add what detection actually reports, and it does: header-and-structure inspection, the format taxonomy, and per-format details such as HWP version/compression/encryption/distribution and PDF version/encryption. The note that on_detect does not consume the one-read-then-delete flag lives only in the file_url schema text, so the description itself adds no side-effect disclosure — a minor gap, not a contradiction.

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?

Two sentences, front-loaded with the action and resource, then the format taxonomy. The long parenthetical lists are dense but each entry is informative about coverage. Slight bloat from listing formats and sub-attributes in one breath, but nothing is redundant.

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?

With no output schema, the description carries the burden of saying what comes back, and it does so by enumerating the detected attributes per format family. It does not state the concrete response shape (e.g., a format name plus a flags object), which leaves a small gap, but for a read-only detection tool an agent has enough to invoke it and interpret the answer.

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 all three parameters (file_url, file_name, file_base64) are fully documented in the schema, including the 15-minute drop URL rules and the base64 alternative. The description adds nothing about parameters, so the baseline 3 applies.

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 gives a concrete verb+resource: it detects a file's format from its header and internal structure, and it enumerates the exact formats covered (hwp, hwp3, hwpx, hwpml, pdf, docx, xlsx, pptx, legacy Office, images) plus the sub-attributes reported for HWP (version, compression, encryption, distribution) and PDF (version, encryption). That is far more specific than the bare name 'on_detect'. It never names a sibling (on_meta, on_read) to contrast against, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus on_meta or on_read, and no prerequisites or exclusions. The '[On 글꺼내기]' tag and the format list only imply it is a first step before extraction. An agent must infer the routing decision entirely on its own.

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.