Skip to main content
Glama

On 공문서 쓰기

AI 없이 양식 채우기

on_fill_template

[On 공문서 쓰기] 예시 양식(on_list_templates 의 번호) 하나를 열어, 주어진 자료(글·파일)의 문단·표를 낱말로 맞는 장 끝에 넣고 「일시: …」 같은 항목은 같은 이름 칸에 넣은 HWPX 를 만든다 — On 문서 화면 「AI 없이 채우기」와 같은 규칙. 자료의 장 제목은 「## 제목」·「□ 제목」·「Ⅰ. 제목」 줄로 준다. 자리가 분명하지 않은 덩이는 넣지 않고 목록(unplaced)으로 돌려준다(틀린 자리보다 안 넣는 것이 낫다). 자료를 넣은 장의 예시 글·표·그래프는 빼고(examples: keep 이면 그대로), 남은 예시 글은 examples_left 로 알린다. 제목·날짜·기관은 title·date·org 로 바꾼다. 채운 뒤 넣은 숫자가 문서에 그대로 있는지 다시 읽어 대조한다. Fill an example template with given material, rule-based (no AI). 자료 글 30만 자·파일 4개(하나 25MB)·덩이 400개까지.

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": {
      "template": "<template>"
    },
    "name": "on_fill_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgNo기관·부서(예: ○○시 ○○과) — 양식 머리의 예시 기관을 바꿈
dateNo날짜(예: 2026. 2. 13.) — 양식 머리의 예시 날짜를 바꿈
filesNo자료 파일(한글·PDF·워드·엑셀·파워포인트) base64 — 글자 인식은 하지 않음
titleNo문서 제목 — 양식의 예시 제목을 바꿈
fieldsNo「항목: 값」 칸 채우기(기본 켬)
sourceNo출처 표시 — note 각주(기본, 자료마다 한 번) · line 아래 줄 · none
examplesNo자료를 넣은 장의 예시 글·표·그래프 — drop 빼기(기본, 칸을 채운 표는 남기고 그 표에서 못 채운 예시 값은 비움) · keep 그대로
templateYes양식 번호(g01 꼴) 또는 이름
unplacedNo자리를 못 정한 덩이 — list 목록으로만(기본) · end 문서 끝에 넣기
material_nameNo자료 이름(출처 표시에 씀, 기본 「자료」)
material_textNo넣을 자료 글(마크다운·개조식·마크다운 표) — 장 제목은 「## 제목」이나 「□ 제목」 줄, 칸에 넣을 값은 「성명: 홍길동」 줄

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only mark it as a non-read-only, non-destructive, non-idempotent write, so the description carries real weight and delivers: it discloses the unplaced-list fallback, that example text/tables/graphs in filled chapters are dropped unless examples=keep, that examples_left is reported, and that numbers are re-read and cross-checked after filling. Hard input limits (300k characters, 4 files, 25MB each, 400 blocks) are stated, which no annotation conveys.

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?

Front-loaded: the core action and the identity of the template reference come first, then placement rules, then fallbacks, then limits. It is dense but nearly every clause carries a distinct rule; the main cost is a single long block that is harder to scan than a short bulleted structure would be.

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?

For an 11-parameter mutation tool with no output schema, the description supplies the missing return information (unplaced, examples_left) and the input-format contracts the schema can't express. Complexity is matched: placement rules, override fields, example-handling, verification and quota limits are all covered.

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 3 baseline is met by structure alone, but the description adds genuine meaning: the expected heading syntax for material chapters (「## 제목」/「□ 제목」/「Ⅰ. 제목」), the 「일시: …」 key-value convention that maps to the fields toggle, and the semantics of examples=keep and unplaced=end. It stops short of clarifying template number format vs. name beyond what the schema says.

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?

Uses a specific verb and artifact: opens one template (identified by on_list_templates' number) and produces an HWPX with material paragraphs/tables placed at matching chapter ends. It also distinguishes itself from a sibling by naming on_list_templates as the source of template numbers and by anchoring to the 「AI 없이 채우기」 screen behavior.

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

Usage Guidelines4/5

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

The bracketed context tag [On 공문서 쓰기] and the on_list_templates reference make the operating scenario clear, and the rule 'if the slot isn't clear, don't insert it — list it as unplaced' gives an explicit fallback policy. What's missing is an explicit statement of when to choose this over a free-form writer sibling; the alternative is implied by the 'AI 없이' / rule-based framing rather than stated.

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.