Skip to main content
Glama

서식 채우기(정본 PDF 오버레이 · 한글)

fill_form
Idempotent

Fill values into the official slot labels of a Korean workers' compensation form and get the completed document back as PDF or HWPX, ready to save or submit.

Instructions

form_id 의 정본 서식에 값을 넣어 base64 로 돌려준다. format='pdf'(기본)는 정본 PDF 오버레이, format='hwpx'는 한글 문서(한글 2014+ 로 열어 고칠 수 있다). 먼저 get_form_catalog(form_id) 의 slot_labels 로 칸을 고른다(칸 이름은 두 형식이 같다). 서식의 선택지(사업주여부·친인척여부·근로자유형·신청 구분·예/아니오·개인정보 동의 등)는 해당 체크 칸에 true 를 넣어야 찍힌다. 아는 값은 빠짐없이 넣는다. 서버에 저장하지 않는다. 주민번호 등은 보내지 않아도 된다(빈칸으로 남는다). 사용자가 도장·날인·인감을 말하면 stamp 를 넣는다(넣지 않으면 서명란이 빈다). F_INDUSTRIAL_ACCIDENT_REPORT(산업재해조사표)는 고용노동부(관할 지방고용노동관서)에 내는 서식이다 — 서술 칸은 get_accident_report_guide 로 쓰고 check_accident_report 로 점검한 뒤 채운다. 칸이 모자란 서술은 칸에 「(별지에 적음)」을 쓰고 끝에 별지 쪽을 붙인다(report.annexed). 도장 기본 자리는 사업주(applicant)이고, 근로자대표 확인란(worker_rep)은 근로자대표 본인 것만 spot='worker_rep' 로 따로 찍는다. 결과의 labor_office 에 workplace_address 로 찾은 관할 관서·접수 부서·전화·팩스·확인방법(find_labor_office 와 같은 내용)과, labor_office 칸에 적은 값·제안 값(slot)을 붙인다. 건설업 칸(발주자·원수급·현장명·공사종류·공정률·공사금액)에 값이 있으면 건설 전담 과로 찾는다.

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": {
      "form_id": "<form_id>",
      "values": "<values>"
    },
    "name": "fill_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
stampNo도장. PDF·한글(hwpx) 출력 모두 신청인 서명란에 찍는다. 본인 또는 명의자 동의가 있는 이름만. 등록 인감 대용이 아니다(사용인감 성격)
formatNopdf(기본) 또는 hwpx(한글)
valuesYes칸 이름 → 값
form_idYes예: F_YOYANG_APPLY, F_HUYEOP_CLAIM …
save_toNo이 PC 에 바로 저장할 절대 경로(.pdf 또는 .hwpx — format 과 맞아야 한다). 주면 base64 대신 저장 경로를 돌려준다. 이미 있는 파일은 덮어쓰지 않는다

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the server does not store data, that save_to will not overwrite existing files, that blank sensitive fields remain blank, that stamps are placed only at named spots, and that labor-office data is enriched in the result. This adds substantial operational context while remaining consistent with the annotations.

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?

The purpose and format choice are front-loaded, and most sentences carry useful constraints. The description is dense and could be easier to scan with bullets, but for a complex form-filling tool the length is largely justified.

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?

Given the complexity, five parameters, nested stamp object, and absence of an output schema, the description covers the workflow, output mode, storage behavior, special form handling, stamp semantics, and labor-office enrichment. An agent has enough context to invoke it correctly.

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 already 100%, but the description still adds meaning beyond the schema: values map to slot labels from get_form_catalog, checkbox selections must be true, format controls the output type, and stamp spot defaults differ from worker_rep. It stops short of fully documenting every edge case, so a 4 is appropriate.

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?

The description states a specific verb and resource: fill the canonical form identified by form_id and return base64, with PDF and HWPX output modes. It also distinguishes the accident-report form workflow and names prerequisite tools, so an agent can tell what the tool does without opening the schema.

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?

It gives explicit workflow guidance: first choose slots from get_form_catalog, put all known values, set checkboxes with true, omit sensitive data if needed, use stamp when a seal is requested, and follow the special accident-report path. These are concrete when-to-use and how-to-use rules, not vague implications.

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