Skip to main content
Glama

홈택스 원천세 기한후신고 부표 저장

hometax__tax__withholding__late_report__annex_save
Destructive

먼저 호출할 도구: hometax__session__login (같은 account_link_id). 작성 중인 원천세 기한후신고서의 부표를 저장하고 기관에서 다시 읽어 저장된 내용을 확인합니다. detail_save 로 소득별 상세를 저장한 뒤에 부릅니다. annex_document 의 kind 로 부표 종류를 고르고, 있던 행을 고치거나 지울 때는 lookup 의 부표 조회가 돌려준 행 번호와 해시를 함께 보냅니다. 제출하지 않습니다. 호출마다 토큰 1소진 요청 처리 시 XBOSS 작업을 생성하고 처리 결과를 저장합니다. 기관 원본의 조회 여부와 별개로 이 호출은 순수 읽기 전용이 아닙니다. 기관 데이터 변경은 도구별 실행 내용과 기존 확인 절차를 따릅니다.

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": {
      "source_job_id": "<source_job_id>",
      "expected_snapshot_hash": "<expected_snapshot_hash>",
      "annex_document": "<annex_document>"
    },
    "name": "hometax__tax__withholding__late_report__annex_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_job_idYes이어서 진행할 이전 단계 작업의 job_id 를 그대로 입력합니다(job_ 으로 시작하는 작업 번호). 명세 저장(detail_save)이나 부표 저장(annex_save) 결과, 또는 그 상태에서 실행한 조회(lookup) 결과를 받습니다. 부표 종류가 승계명세(refund_succession)이면 기본정보 저장(basic_save) 결과도 받습니다. 같은 조직과 환경, 같은 기관 연결에서 이 신고 유형으로 성공한 작업이어야 하고 아니면 진행하지 않고 거절하며, 받지 않는 작성 상태의 결과이면 409 로 거절합니다.
annex_documentYes저장할 부표를 담는 객체입니다. kind 에 부표 종류를 입력하고, 값을 바꿀 때는 datasets 에, 행을 추가하거나 수정하거나 삭제할 때는 row_operations 에 담습니다. 같은 목록을 두 곳에 함께 입력하면 입력 오류로 거절합니다. 행을 수정하거나 삭제할 때는 query.kind 가 annex_rows 이고 query.annex_kind 에 같은 부표 종류를 입력한 조회(lookup) 결과의 row_targets 에서 받은 row_index 와 expected_row_hash 를 함께 입력하며, 기관의 지금 행과 다르면 409 로 거절합니다. 행을 추가할 때는 그 둘을 입력하지 않고, 삭제할 때는 values 를 입력하지 않습니다. 환급신청 부표(refund)는 이 신고 유형에서 받지 않고 거절합니다. 승계명세(refund_succession)는 바뀐 행이 없으면 거절하고, 저장한 뒤에는 명세 저장(detail_save)을 다시 해야 합니다. 안쪽 칸은 요구사항 조회(requirements) 결과의 actions 아래 annex_save 항목 schema 에 있습니다. JSON 문자열이 아니라 객체로 입력하며 문자열이면 입력 오류로 거절합니다.
account_link_idNo연동 ID(UUID v4). 선택 입력입니다. 비워 두면 서버가 API 키로 연동을 찾아 씁니다. 같은 기관에 인증서를 여러 개 연동했을 때만 직접 입력해 주세요. 기관마다 ID 가 다릅니다.
expected_snapshot_hashYessource_job_id 작업 결과의 snapshot_hash 를 그대로 입력합니다(소문자 16진수 64자리). 그 작업의 내용과 맞지 않으면 진행하지 않고 작성 내용이 바뀌었다는 오류(409)로 거절합니다.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / $defs / AnnexDocument / properties / datasets / description
      Added value: +"부표의 값을 바꿀 때 쓰는 객체입니다. 키는 그 부표에서 바꿀 수 있는 기관 데이터 이름이고, 값은 바꿀 칸만 담은 객체나 행 객체 목록입니다. 행 목록은 기관 행과 개수가 같아야 하며, 행 수를 바꾸려면 row_operations 를 씁니다. 바꿀 수 없는 데이터 이름은 입력 오류로 거절합니다."
    • addedInput schema / $defs / AnnexRowOperation / properties / expected_row_hash / description
      Added value: +"수정하거나 삭제할 행의 확인값입니다(소문자 16진수 64자리). row_index 와 같은 row_targets 항목에서 받은 값을 그대로 입력하며 add 에는 입력하지 않습니다. 기관의 지금 행과 다르면 409 로 거절합니다."
    • addedInput schema / $defs / AnnexRowOperation / properties / operation / description
      Added value: +"행 작업의 종류입니다. 새 행은 add, 기존 행 수정은 update, 기존 행 삭제는 delete 로 입력합니다."
    • addedInput schema / $defs / AnnexRowOperation / properties / row_index / description
      Added value: +"수정하거나 삭제할 행의 위치입니다. 부표 행 조회(lookup 의 query.kind 가 annex_rows) 결과의 row_targets 에서 받은 값을 그대로 입력하며 add 에는 입력하지 않습니다. 조회 결과의 범위를 벗어나거나 기관의 지금 행과 다르면 거절합니다."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: each call consumes one token, creates an XBOSS job on the server, re-reads from the agency to verify what was saved, and returns 409 when snapshot or row hashes no longer match. It correctly reinforces rather than contradicts destructiveHint=true and readOnlyHint=false. Minor deduction for the trailing generic sentences ('기관 데이터 변경은 도구별 실행 내용과 기존 확인 절차를 따릅니다') that convey no concrete behavior, and for repeating the 409 conditions already stated in the schema.

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-loads the prerequisite and the core action, then moves to ordering, then to parameter guidance — a sensible sequence for a workflow step. It is dense and includes one or two boilerplate clauses that could be cut, but no sentence is redundant with the tool name or title.

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 destructive, job-creating mutation with no output schema, the description covers prerequisites, ordering constraints, conflict semantics, and the verification read-back. It stops short of describing the shape of the verification result an agent receives, which is 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.

Parameters4/5

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

Schema coverage is 100% and the schema is already richly annotated, so the baseline is 3; the description still adds value by explaining how annex_document.kind selects the annex type, that datasets and row_operations are mutually exclusive for the same list, that row edits must carry lookup-returned row_index plus expected_row_hash, and where the nested field requirements live (requirements → actions → annex_save). It largely mirrors schema text, hence not a 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 — saves the annex (부표) of an in-progress withholding late-report — and immediately scopes it against siblings: it is not a submission ('제출하지 않습니다'), it follows detail_save, and it differs from basic_save except for the refund_succession case. An agent can place it in the workflow without opening another 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?

Gives explicit preconditions (call hometax__session__login with the same account_link_id first; call after detail_save), ordering for row edits (obtain row_index and expected_row_hash from lookup's annex_rows query first), and exclusions (the refund annex kind is rejected for this report type; refund_succession requires re-running detail_save afterward). When-to-use and when-not-to-use are both present.

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.

Resources