Skip to main content
Glama

홈택스 원천세 기한후신고 소득별 상세 저장

hometax__tax__withholding__late_report__detail_save
Destructive

먼저 호출할 도구: hometax__session__login (같은 account_link_id). 원천세 기한후신고서의 소득 종류별 인원과 금액을 작성 중인 신고서에 저장합니다. 제출하지 않습니다. 호출마다 토큰 4소진 요청 처리 시 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__late_report__detail_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_job_idYes이어서 진행할 이전 단계 작업의 job_id 를 그대로 입력합니다(job_ 으로 시작하는 작업 번호). 기본정보 저장(basic_save), 명세 저장(detail_save), 부표 저장(annex_save) 결과, 또는 그 상태에서 실행한 조회(lookup) 결과를 받습니다. 같은 조직과 환경, 같은 기관 연결에서 이 신고 유형으로 성공한 작업이어야 하고 아니면 진행하지 않고 거절하며, 받지 않는 작성 상태의 결과이면 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

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that each call consumes 4 tokens and creates an XBOSS job whose result is stored, and it explicitly warns that the call is not purely read-only, which is consistent with readOnlyHint=false and destructiveHint=true. It does not explain what existing income rows are overwritten or replaced when a section is re-saved, which is the main behavioral risk left undisclosed for a destructive write.

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 prerequisite is front-loaded, and the non-submission constraint and token cost are stated compactly; almost every sentence carries information. The closing line ('기관 데이터 변경은 도구별 실행 내용과 기존 확인 절차를 따릅니다') is vague boilerplate that adds little.

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 a destructive draft-mutation tool with no output schema, the definition covers the prerequisite, the cost, the no-submit boundary, the non-read-only nature, and the stub-validation of source_job_id and expected_snapshot_hash. The rich schema carries the field-level and validation details, so an agent has enough to call this correctly.

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 already explains source_job_id, expected_snapshot_hash (409 on drift), account_link_id, and the nested detail document in depth. The description adds only a small hint that account_link_id must match the one used at login; otherwise it defers to the schema, so the baseline of 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 gives a specific verb and object: it saves per-income-type headcounts and amounts into a draft late withholding report ('원천세 기한후신고서의 소득 종류별 인원과 금액을 작성 중인 신고서에 저장합니다'), and it clarifies that it does not submit. This clearly separates it from the submit sibling, but it does not name the adjacent basic_save/annex_save steps, so the differentiation from those siblings comes only indirectly from the phrase '소득 종류별'.

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 description opens with an explicit prerequisite ('먼저 호출할 도구: hometax__session__login (같은 account_link_id)') and states that the call works against a report already in progress. It implies that submission is the job of another tool ('제출하지 않습니다'), but it never spells out when this step precedes or follows the basic_save and annex_save steps.

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