Skip to main content
Glama

On 문서

On 공문서 쓰기 — 보고서·계획서·결과보고서·보도자료 한글 문서

on_write_gov

[On 공문서 쓰기 — 보도자료·보고서·계획서 한글 파일] 사용자가 자료·메모로 보도자료·보고서·계획서를 「한글 파일로」 만들어 달라 할 때 쓰는 도구다. 결과의 check 는 만든 파일을 다시 읽어 원고와 견준 값이고(원고 숫자를 잃으면 알려 줌) preview 로 첫 쪽 그림을 바로 볼 수 있다 — 보낸 원고는 이 서버(국내 데이터센터) 메모리에서 한글 파일로 만들고 남기지 않는다(결과 파일 주소 15분). 보고서·계획서·결과보고서·보도자료·기안문·공고문처럼 공문서 꼴 한글 문서를 만드는 도구 — 마크다운이나 짜임(structure)을 정부 공문서 꼴 한글 파일(HWPX)로 만든다(꾸밈 없는 일반 문서는 on_write). 글 없는 글머리 줄(「- 」만 있는 줄)은 넣지 않고, markdown 원고에서 장 제목 아래 갈래가 마크다운 글머리(-)만 쓰면 깊이대로 ○ → - → · 단계로 옮긴다(□○ 기호를 쓴 갈래는 그대로). On 문서 화면 「AI 새 문서」와 같은 엔진(AI 없음). 휴먼명조·HY헤드라인M, 장 제목 막대, 표 캡션·단위, 계획서·결과보고서는 표지·목차. 원고에 없는 사실·숫자는 넣지 않는다. 원고는 markdown 이나 structure 로 받는다 — structure 는 장(chapters 의 title)마다 items(head 절·소제목, mark □ ○ - · * ※, text, table, diagram)를 칸으로 주는 꼴이라 장·절·그래프 자리가 칸 그대로 들어가고, markdown 은 아래 【markdown】 표기로 같은 꼴이 된다. 【꼴】 보고서·계획서·결과보고서는 응급의료 기본계획(보건복지부) 꼴: 장(chapters 의 title — 번호 없이, Ⅰ. Ⅱ. 는 자동) → 절(items 의 head 「절」 — 번호 상자 「1 │ 제목」) → 소제목(head 「소제목」 — 「① 제목」) → □ → ○ → - → ·(참고·근거 숫자 줄). 줄 글은 「함」「임」 같은 끝맺음으로 끝나며, 명사로 끝난 줄(「…지원」)은 결재 전 점검(on_check_text)에서 「공문 형식」으로 잡힌다. 이 꼴은 ○ 마다 그 아래 - 가 13줄(자료의 숫자·주체·기간·대상·비율·견줌)로 촘촘하고, ○ 되풀이·말만 바꾼 줄·자료끼리 이어 붙인 해석(「에 대응함」「가 기준임」)이 없다. 한 줄은 빈칸 포함 약 40자 — 줄 끝에 12글자만 넘어가면 엔진이 그 문단만 낱말 사이 빈칸을 먼저, 모자라면 자간을 조금 줄여 한 줄에 넣고, 3글자 넘게 넘어가 둘째 줄이 앞 줄 폭의 1/3 이 안 되면 글은 그대로 두고 장평을 조금 더 줄여 올리거나 자간을 조금 넓혀 채운다. 그래도 둘째 줄이 짧게 남으면 결과의 short_last_lines 에 잡힌다. 그러면 원고·자료에 이미 있는 숫자·주체·기간·대상을 그 문장에 보태 둘째 줄까지 거의 채우거나(80자 안팎), 보탤 사실이 없으면 줄여 한 줄로 고쳐 다시 만든다(자료에 없는 말·숫자는 지어내지 않음). 장 첫머리 핵심 요약은 mark 없이 text 를 「◆ …」로 쓴 34줄(120160자). 낱말 뒤 (예: KTAS)와 그 ○ 묶음 아래 mark 「*」 줄은 주석이 된다. table.compare 는 현행 → 개선(안) 비교표, diagram.kind 「비전」은 비전·목표·전략 한 장 체계도. chapters 하나에 title 없이 items 만 주면 장 막대 없이 □○ 로 시작하는 1쪽 보고자료(style 보고서). meta 의 기관·날짜·부제는 표지·머리에 들어가고, 기관이 없는 계획서·결과보고서 표지에는 기관 줄이 없다. 【그래프·체계도】 table.chart(비교 bar·추이 line·구성비 pie)는 그 표 숫자로 그래프 그림을, items 의 diagram 은 추진체계·절차·단계·역할 나눔 체계도를 넣는다. items 에 잇달아(사이에 다른 항목 없이) 둔 그래프 둘은 한 줄에 반 폭씩 나란히 들어간다 — 기본계획 꼴 문서는 비교·추이·구성비 숫자가 셋 이상인 자료를 같은 절의 그래프 두 개로 보이고 자세한 숫자는 표로 둔다. 그림은 준 숫자·낱말로만 그린다. 【markdown】 첫 줄 「# 제목」, 「## Ⅰ. 장 제목」, 「### 1. 절 제목」(번호 상자 — 번호 없는 ### 는 밑줄 제목), 「#### ① 소제목」, 장 첫머리 요약 「> ◆ …」. 「---」로 감싼 「기관: ○○시」 「날짜: 2026. 11.」 「부제: …」 머리말은 글 맨 위(「# 제목」보다 앞)에 둘 때 머리말로 읽힌다 — 「# 제목」 다음에 두면 장 제목으로 찍힌다. 표는 마크다운 표(위에 「< 표 제목 >」 줄·「(단위: 명)」 줄), 그래프는 「```그래프 막대 제목」(꺾은선·원) 울타리 안에 마크다운 표 — 연도가 머리 칸인 가로 표도 됨(「[그래프 막대] 제목」 묶음도 같음). 숫자·이름은 원문 그대로 남는다(천 단위 쉼표는 넣어도 됨). 【결과】 check.same 은 만든 파일을 다시 읽어 견준 결과(false 면 잃은 글이 있음 — check.examples), quality 는 고칠 곳 목록, short_last_lines 는 둘째 줄이 짧게 남은 문장(고쳐 다시 만든다 — 위 「한 줄은 약 40자」 참고), preview 1~2 는 앞 쪽 그림. tell_user 는 사용자에게 그대로 옮겨 전할 쉬운 말(만든 꼴·쪽 수·저절로 맞춘 것·채울 자리·확인할 곳), number_check 는 표 합계·글 속 비율·증감 셈이 맞지 않아 보이는 곳, spell_check 는 맞춤법·날짜·금액에서 볼 곳 — 문서는 고치지 않았으니 결과를 건넬 때 tell_user 와 함께 그대로 알린다. Make a Korean government-style HWPX (report/plan/press release/draft/notice) from markdown or a structure. 마크다운 20만 자·장 40·장마다 항목 400·표 200줄×20칸까지. 잰 값: 이 도구로 만든 자체 공문서 30과제를 한컴오피스 한글 2024 로 열어 자동 채점 — 30개 모두 100점(2026-11-25).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "style": "<style>"
    },
    "name": "on_write_gov"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleYes공문서 꼴
titleNo문서 제목
previewNo쪽 몇 장을 그림으로 함께(0~2, 기본 0) — 표지·목차는 건너뛰고 본문 첫 쪽부터, 2장이면 그래프가 든 쪽을 먼저
markdownNo공문서 꼴 원고 마크다운 — 「## Ⅰ. 장 제목」·「### 1. 절 제목」·「#### ① 소제목」·□ ○ - 줄·마크다운 표·그래프는 「```그래프 막대 제목」 울타리 안에 마크다운 표(「[그래프 막대] 제목」 묶음도 같음)·체계도는 「```체계도 제목」
structureNomarkdown 대신 짜임으로 — { title, meta: { 기관, 날짜, 부제 … }, chapters: [{ title, items: [{ head?, mark?, text?, table?, diagram? }] }] }
preview_pagesNo그림으로 볼 쪽을 직접(「3-4」·「2,5」 꼴, 2쪽까지) — preview 보다 먼저

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations establish this is a non-readonly, non-destructive generator, and the description adds substantial behavior: the source is processed in server memory and not retained, the result URL lasts 15 minutes, result fields include check/preview/quality/short_last_lines, and it refuses to add facts or numbers not in the source. No contradiction with 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?

The purpose is front-loaded and bracket headings provide some structure, but the description is extremely long, repeats document-type lists, and includes dense micro-rules about line width, spacing, and short last lines. Much of it is useful, but it is not concise and reads as a wall of text.

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?

There is no output schema, but the description explains result fields such as check, quality, short_last_lines, preview, tell_user, number_check, and spell_check. It also gives size limits, data-retention behavior, and document formatting constraints, making it complete for a complex document generator.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes further by explaining markdown heading conventions, structure chapters/items/table/diagram forms, preview page behavior, and style-specific layouts. Much of this is document-format guidance rather than direct parameter definition, so 4 rather than 5.

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?

States a specific verb and resource: it makes a Korean government-style HWPX document from markdown or structure. It enumerates report/plan/result report/press release/draft/notice and explicitly distinguishes plain documents by pointing to on_write.

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?

Opens with the user trigger — when someone asks for a press release, report, or plan as a Hangul file — and names the alternative on_write for unformatted documents. It also references on_check_text for post-generation public-document form checks, giving clear routing guidance.

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.