Skip to main content
Glama

홈택스 원천세 수정신고 작성 참고자료 조회

hometax__tax__withholding__amendment_report__lookup

먼저 호출할 도구: hometax__session__login (같은 account_link_id). 원천세 수정신고 작성에 필요한 기납부세액, 가산세, 저장된 신고서를 조회합니다. 조회만 하고 신고서를 바꾸지 않습니다. 로그인한 호출이면 첫 요청 전에 request_idempotency_key 값을 만들어 저장하세요. 응답을 받지 못한 그 요청을 되찾을 때만 같은 인자와 함께 그 값을 다시 보내고, 새로 실행할 때는 새 값을 쓰세요. 이 값 없이 다시 부르면 새 요청이 됩니다. 계정 없이 맛보기로 부를 때는 이 선택 칸을 쓸 수 없습니다. 기관 업무에 따로 있는 idempotency_key 칸은 다른 칸이니 그대로 두세요. 호출마다 토큰 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": {
      "query": "<query>"
    },
    "name": "hometax__tax__withholding__amendment_report__lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes조회 종류와 조건을 담은 객체입니다. kind 로 종류를 고르며, saved_returns 는 기관에 저장해 둔 작성 중 신고서를 찾거나 불러오고, prefill 은 현재 신고서를 기관에서 다시 읽어 자동 채움 값을 돌려주고, paid_tax 는 기납부 명세를, surcharge 는 미납세액의 가산세를 조회하고, annex_rows 는 현재 신고서의 부표 행을 읽습니다. 어느 종류도 기관에 저장하거나 제출하지 않습니다. 종류마다 받는 칸은 요구사항 조회(requirements) 결과의 actions 아래 lookup 항목 schema 에 있고, 모르는 kind 는 입력 오류로 거절합니다. JSON 문자열이 아니라 객체로 입력하며 문자열이면 입력 오류로 거절합니다.
source_job_idNo현재 신고서의 이전 단계 작업 job_id 입니다(job_ 으로 시작하는 작업 번호). query.kind 가 saved_returns 이면 생략할 수 있고 다른 조회에는 필요하며, 입력할 때는 expected_snapshot_hash 와 함께 입력해야 하고 하나만 입력하면 입력 오류로 거절합니다. 같은 조직과 환경, 같은 기관 연결에서 이 신고 유형으로 성공한 작업이어야 하고 아니면 진행하지 않고 거절하며, 받지 않는 작성 상태의 결과이면 409 로 거절합니다.
account_link_idNo연동 ID(UUID v4). 선택 입력입니다. 비워 두면 서버가 API 키로 연동을 찾아 씁니다. 같은 기관에 인증서를 여러 개 연동했을 때만 직접 입력해 주세요. 기관마다 ID 가 다릅니다.
expected_snapshot_hashNosource_job_id 와 함께 입력하는 값입니다. source_job_id 작업 결과의 snapshot_hash 를 그대로 입력합니다(소문자 16진수 64자리). 그 작업의 내용과 맞지 않으면 진행하지 않고 작성 내용이 바뀌었다는 오류(409)로 거절합니다.
request_idempotency_keyNo로그인한 호출에서 응답을 못 받은 같은 요청을 되찾을 때 쓰는 선택 값입니다. 쓰는 법은 도구 설명에 있습니다.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / request_idempotency_key / description
      Previous value: -"Optional same-request recovery key for authenticated calls; see the tool description."New value: +"로그인한 호출에서 응답을 못 받은 같은 요청을 되찾을 때 쓰는 선택 값입니다. 쓰는 법은 도구 설명에 있습니다."
  2. Changed17 schema fields changed
    • addedInput schema / $defs / AnnexRowsQuery / properties / kind / description
      Added value: +"조회 종류입니다. annex_rows 로 입력하면 현재 신고서의 부표 행을 읽습니다."
    • addedInput schema / $defs / PaidTaxQuery / properties / kind / description
      Added value: +"조회 종류입니다. paid_tax 로 입력하면 기납부 명세를 조회합니다."
    • addedInput schema / $defs / PaidTaxQuery / properties / pymnYm / description
      Added value: +"조회할 지급연월입니다. YYYYMM 여섯 자리로 입력하며, 귀속연월보다 이르면 입력 오류로 거절합니다."
    • addedInput schema / $defs / PaidTaxQuery / properties / txnrmYm / description
      Added value: +"조회할 귀속연월입니다. YYYYMM 여섯 자리로 입력하며, 현재 신고서 제출연도의 5년 전 1월보다 이르면 입력 오류로 거절합니다."
    • addedInput schema / $defs / PaidTaxQuery / properties / whtxIncCd / description
      Added value: +"조회할 원천징수소득코드입니다. 고른 소득구분에 속한 기관 코드여야 하고 A05, A06, A27, A28 은 받지 않으며, 아니면 입력 오류로 거절합니다."
    • addedInput schema / $defs / PaidTaxQuery / properties / whtxIncClCd / description
      Added value: +"조회할 소득구분 코드입니다. 현재 신고서의 기관 코드 목록에 있는 값이어야 하고 없으면 입력 오류로 거절합니다."
    • addedInput schema / $defs / Periods / properties / attrYm / description
      Added value: +"귀속연월입니다. 소득이 귀속되는 연월을 YYYYMM 여섯 자리로 입력합니다. 작성 준비(init)에서는 지급연월보다 늦으면 입력 오류로 거절합니다."
    • addedInput schema / $defs / Periods / properties / pymnYm / description
      Added value: +"지급연월입니다. 소득을 지급한 연월을 YYYYMM 여섯 자리로 입력합니다. 작성 준비(init)에서는 제출연월보다 늦으면 입력 오류로 거절합니다."
    • addedInput schema / $defs / Periods / properties / submitYm / description
      Added value: +"제출연월입니다. 신고서를 제출하는 연월을 YYYYMM 여섯 자리로 입력합니다."
    • addedInput schema / $defs / PrefillQuery / properties / kind / description
      Added value: +"조회 종류입니다. prefill 로 입력하면 현재 신고서를 기관에서 다시 읽어 자동 채움 값을 돌려주며, 다른 칸은 받지 않습니다."
    • addedInput schema / $defs / SavedReturnsQuery / properties / kind / description
      Added value: +"조회 종류입니다. saved_returns 로 입력하면 기관에 저장해 둔 작성 중 신고서를 찾고, load 를 true 로 주거나 returnId 를 주면 불러옵니다."
    • addedInput schema / $defs / SavedReturnsQuery / properties / periods / description
      Added value: +"찾을 신고서의 제출연월, 귀속연월, 지급연월입니다. 이전 작업에 있으면 생략하고, 함께 입력하면 이전 작업의 기간과 같아야 하며 다르면 409 로 거절합니다."
    • addedInput schema / $defs / SavedReturnsQuery / properties / returnId / description
      Added value: +"불러올 작성 중 신고서의 식별값입니다. load 없이 먼저 조회한 결과 choices 의 rtnCvaId 를 그대로 입력하면 그 신고서를 불러오고, 같은 사업자와 기간, 신고 유형의 목록에 없으면 409 로 거절합니다."
    • addedInput schema / $defs / SurchargeQuery / properties / kind / description
      Added value: +"조회 종류입니다. surcharge 로 입력하면 미납세액의 가산세를 조회합니다."
    • addedInput schema / $defs / SurchargeQuery / properties / npmtTxamt / description
      Added value: +"가산세를 계산할 미납세액(원)입니다. 0 보다 큰 10원 단위 정수로 입력하며, 10원 단위가 아니면 값을 바꾸지 않고 입력 오류로 거절합니다."
    • addedInput schema / $defs / SurchargeQuery / properties / pmtDdt / description
      Added value: +"미납세액의 원래 납부기한입니다. YYYYMMDD 여덟 자리의 실제 날짜로 입력하며, 오늘보다 이전이고 최근 10년 이내이며 납부일보다 이전이어야 합니다. 아니면 입력 오류로 거절합니다."
    • addedInput schema / $defs / SurchargeQuery / properties / pmtDt / description
      Added value: +"실제로 납부할 날짜입니다. YYYYMMDD 여덟 자리의 실제 날짜로 입력하며, 오늘이거나 그 뒤여야 하고 아니면 입력 오류로 거절합니다."
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, which is ambiguous for a tool called 'lookup'. The description resolves that by disclosing that each call consumes one token, creates an XBOSS job and persists its result, and that the call is explicitly not purely read-only with respect to the platform even though the institution report is untouched. That is exactly the kind of context annotations cannot carry.

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?

Structure is sensible: prerequisite tool first, then purpose, then behavioral and idempotency details. Most sentences carry load, though the token/XBOSS sentence is compressed into an awkward run-on and the idempotency paragraph is longer than the purpose statement itself.

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 one-of-five-discriminator lookup with no output schema, the definition covers auth prerequisite, scope, cost, and idempotency, and points to requirements for the per-kind field schema. It leaves the returned value shape only implicitly covered by the schema's row_targets/choices mentions rather than the description itself.

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%, so the baseline is 3; the description earns more by supplying operational semantics for request_idempotency_key (generate before the first call, reuse the same value only to recover an unanswered request, use a fresh value for a new execution) that the schema defers to the description for. It also reinforces the shared account_link_id requirement across calls.

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 the specific resource set it retrieves (기납부세액, 가산세, 저장된 신고서) for 원천세 수정신고 and explicitly states it does not alter the report. That is a clear verb+resource, but it does not name the sibling it is not (requirements, preview, receipt, history), and it omits two of the five query kinds (prefill, annex_rows) that also fall under this tool.

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 opens with a hard prerequisite (call hometax__session__login first with the same account_link_id) and states the read-only scope. It also tells the agent when the request_idempotency_key field is unusable (account-less trial calls) and warns not to confuse it with the institutional idempotency_key. It stops short of saying when to choose this over requirements or preview.

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