Skip to main content
Glama

홈택스 원천세 수정신고 소득별 상세 저장

hometax__tax__withholding__amendment_report__detail_save
Destructive

먼저 호출할 도구: hometax__session__login (같은 account_link_id). 원천세 수정신고서의 소득 종류별 인원과 금액을 작성 중인 신고서에 저장합니다. 제출하지 않습니다. 호출마다 토큰 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>",
      "detail_document": "<detail_document>"
    },
    "name": "hometax__tax__withholding__amendment_report__detail_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_job_idYes이어서 진행할 이전 단계 작업의 job_id 를 그대로 입력합니다(job_ 으로 시작하는 작업 번호). 기본정보가 저장된 상태의 결과를 받습니다. 기본정보 저장(basic_save), 명세 저장(detail_save), 부표 저장(annex_save) 결과와 query.kind 가 prefill 인 조회(lookup)에서 빠진 항목(missing_fields)이 없던 결과가 그렇고, 작성 준비(init) 결과는 받지 않습니다. 같은 조직과 환경, 같은 기관 연결에서 이 신고 유형으로 성공한 작업이어야 하고 아니면 진행하지 않고 거절하며, 받지 않는 작성 상태의 결과이면 409 로 거절합니다.
account_link_idNo연동 ID(UUID v4). 선택 입력입니다. 비워 두면 서버가 API 키로 연동을 찾아 씁니다. 같은 기관에 인증서를 여러 개 연동했을 때만 직접 입력해 주세요. 기관마다 ID 가 다릅니다.
detail_documentYes저장할 소득 명세를 담는 객체입니다. 안쪽 칸과 필수 여부는 요구사항 조회(requirements) 결과의 actions 아래 detail_save 항목 schema 에 있습니다. JSON 문자열이 아니라 객체로 입력하며 문자열이면 입력 오류로 거절합니다.
expected_snapshot_hashYessource_job_id 작업 결과의 snapshot_hash 를 그대로 입력합니다(소문자 16진수 64자리). 그 작업의 내용과 맞지 않으면 진행하지 않고 작성 내용이 바뀌었다는 오류(409)로 거절합니다.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • addedInput schema / $defs / DetailDocument / properties / incomeSections / description
      Added value: +"소득 명세 구분별로 바꿀 소득행을 담는 객체입니다. 키는 employment, retirement, business, other 같은 소득 이름이나 기관 명세 구분 번호이고, 값은 그 구분의 소득행 목록입니다. 하나 이상 입력하며 기관 화면에 없는 구분은 입력 오류로 거절합니다. 소득행에는 code 와 바꿀 칸만 넣고, 생략한 칸은 기관 값을 그대로 씁니다. 합계 행과 납부세액은 서버가 다시 계산합니다. JSON 문자열이 아니라 객체로 입력하며 문자열이면 입력 오류로 거절합니다."
    • addedInput schema / $defs / IncomeRow / properties / adttxLvyTxamt / description
      Added value: +"징수 가산세액(원)입니다. 0 이상의 정수로 입력합니다."
    • addedInput schema / $defs / IncomeRow / properties / code / description
      Added value: +"바꿀 소득행의 원천징수소득코드입니다. A 나 C 로 시작하는 세 자리(예 A01)이고, 기관 명세에 이미 있는 행이어야 하며 같은 구분에서 같은 코드를 두 번 입력하면 입력 오류로 거절합니다."
    • addedInput schema / $defs / IncomeRow / properties / fnftxLvyTxamt / description
      Added value: +"징수 농어촌특별세액(원)입니다. 정수로 입력합니다."
    • addedInput schema / $defs / IncomeRow / properties / fnftxPmtTxamt / description
      Added value: +"납부 농어촌특별세액(원)입니다. 서버가 행의 값으로 다시 계산하므로 생략하고, 입력하면 계산값과 같아야 하며 다르면 입력 오류로 거절합니다."
    • addedInput schema / $defs / IncomeRow / properties / incPymnNfpCnt / description
      Added value: +"소득 지급 인원수입니다. 0 이상의 정수로 입력하며, 지급 총액이나 징수세액이 있는 행은 인원이 있어야 합니다."
    • addedInput schema / $defs / IncomeRow / properties / incPymnTotaPymnAmt / description
      Added value: +"소득 지급 총액(원)입니다. 정수로 입력하며, 인원이 있는 행은 0 보다 커야 합니다."
    • addedInput schema / $defs / IncomeRow / properties / inctxLvyTxamt / description
      Added value: +"징수 소득세액(원)입니다. 정수로 입력합니다."
    • addedInput schema / $defs / IncomeRow / properties / inctxPmtTxamt / description
      Added value: +"납부 소득세액(원)입니다. 서버가 행의 값으로 다시 계산하므로 생략하고, 입력하면 계산값과 같아야 하며 다르면 입력 오류로 거절합니다."
    • addedInput schema / $defs / IncomeRow / properties / tmnMetnRfndTxamt / description
      Added value: +"당월 조정 환급세액(원)입니다. 정수로 입력합니다."
    • addedInput schema / $defs / RefundAdjustmentPatch / properties / fnnEtcRfndTxamt / description
      Added value: +"그 밖의 환급세액(금융회사 등, 원)입니다. 0 이상의 정수로 입력합니다."
    • addedInput schema / $defs / RefundAdjustmentPatch / properties / pvmnArefAplnTxamt / description
      Added value: +"기환급 신청세액(원)입니다. 0 이상의 정수이고 전월 미환급세액보다 크면 입력 오류로 거절합니다."
    • addedInput schema / $defs / RefundAdjustmentPatch / properties / pvmnNrfnTxamt / description
      Added value: +"전월 미환급세액(원)입니다. 0 이상의 정수로 입력합니다."
    • addedInput schema / $defs / RefundAdjustmentPatch / properties / rfndAplnAmt / description
      Added value: +"환급 신청액(원)입니다. 0 이상의 정수이고 차월 이월 환급세액보다 크면 입력 오류로 거절합니다. 수정신고가 아닌 신고서에서 기본정보의 환급 신청이 Y 이면 환급 신청액과 차월 이월 환급세액이 모두 0 보다 커야 합니다."
    • addedInput schema / $defs / RefundAdjustmentPatch / properties / trstPrpFnnOrgnTxamt / description
      Added value: +"신탁재산(금융회사 등) 환급세액(원)입니다. 0 이상의 정수로 입력합니다."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety bar is lower, yet the description adds genuinely new facts: it is not purely read-only despite agency lookup, it consumes one token per call, and it creates an XBOSS job and stores the result. The closing sentence about following per-tool confirmation procedures is generic boilerplate, keeping it from a 5.

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?

Short and mostly front-loaded, though it leads with the prerequisite call rather than the purpose, and the final sentence is a generic disclaimer that adds little. No wasted enumeration or repetition.

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 stateful, destructive draft-save with no output schema, the description covers the prerequisite chain, non-submission, token cost, and job creation. It omits what the call returns (job_id / snapshot_hash to feed the next step), which would have closed the remaining gap.

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

Parameters3/5

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

Schema description coverage is 100% and the schema itself carries detailed per-field semantics (code pattern, server-recomputed fields, snapshot hash concurrency check, source_job_id preconditions). The description adds essentially nothing about individual parameters beyond the account_link_id consistency note, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource: saving income-type headcount and amounts into the in-progress withholding amendment report, and it explicitly states 제출하지 않습니다 (does not submit), which separates it from submit. It does not explicitly contrast with siblings basic_save/annex_save, relying on the resource noun to imply the detail section.

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?

It gives an explicit ordering rule (call hometax__session__login first with the same account_link_id) and states that this is a mid-flow draft save rather than a submission. It stops short of naming the alternative save tools (basic_save, annex_save) or exclusions beyond 'does not submit'.

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