Skip to main content
Glama

홈택스 원천세 수정신고 부표 저장

hometax__tax__withholding__amendment_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__amendment_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.3/5.0
Behavior3/5

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

The description discloses behavior beyond the annotations: token cost per call, creation of an XBOSS job, storage of the processing result, a re-read of agency data for verification, and 409 on snapshot/hash mismatch. It also correctly reinforces that this is not a pure read operation, consistent with readOnlyHint=false and destructiveHint=true. The explanation of what data is destroyed or how conflicting edits resolve is only partially covered, and the return shape of the verification re-read is not described.

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 tool and the core action before the conditional rules, which is the right order for an agent. However, it is a dense run-on block and the closing sentence ("기관 데이터 변경은 도구별 실행 내용과 기존 확인 절차를 따릅니다") is generic filler that does not earn its place.

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 mutation with no output schema, the description covers prerequisites, ordering, hashing/concurrency, and kind restrictions well. The remaining gap is that it does not say what the verification re-read returns or which value feeds the next step (expected_snapshot_hash implies a returned snapshot_hash but that is never stated).

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%, so the baseline is 3, but the description adds real routing meaning: annex_document.kind selects the annex type, datasets versus row_operations must not duplicate the same list, and row_index/expected_row_hash must come from lookup's row_targets. It also flags kind-specific rules (refund rejected, refund_succession requires a fresh detail_save).

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 ("작성 중인 원천세 수정신고서의 부표를 저장") and adds the verification behavior ("기관에서 다시 읽어 저장된 내용을 확인합니다"). It also separates itself from siblings by naming detail_save as the prior step and stating "제출하지 않습니다" to distinguish it from submit.

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 prerequisites and ordering: login with the same account_link_id first, then detail_save, then this tool. It also names the alternative path for editing/deleting rows (lookup's annex_rows result supplying row_index and hash) and states that the refund annex kind is rejected for this report type.

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