Skip to main content
Glama

홈택스 원천세 기한후신고 작성 취소

hometax__tax__withholding__late_report__cancel_draft
Destructive

먼저 호출할 도구: hometax__session__login (같은 account_link_id). 기관에 작성 중인 원천세 기한후신고서를 취소합니다. 취소하면 그 작성 중 신고서를 되살릴 수 없습니다. 이미 접수된 신고는 취소하지 않으며 접수된 신고를 지우려면 신고 삭제신청을 쓰세요. 그 작성 중 신고서를 다룬 직전 단계의 job_id 를 source_job_id 로 넘깁니다. 이 도구는 기관의 기록을 바꿉니다. 첫 호출은 실행되지 않고, 전송할 내용의 미리보기와 1회용 confirmation_token 을 돌려줍니다(오류 WRITE_CONFIRMATION_REQUIRED). 그 미리보기를 사용자에게 그대로 보여 줍니다. 사용자가 동의한 뒤에만 같은 인자에 그 confirmation_token 을 더해 다시 호출합니다. 사용자의 동의 없이 토큰을 넣지 않습니다. 인자를 하나라도 바꾸면 토큰은 무효가 됩니다. 그때는 토큰 없이 호출해 새 미리보기를 받습니다. 호출마다 토큰 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>"
    },
    "name": "hometax__tax__withholding__late_report__cancel_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_job_idYes이어서 진행할 이전 단계 작업의 job_id 를 그대로 입력합니다(job_ 으로 시작하는 작업 번호). 작성 준비(init)부터 미리보기(preview)까지 작성 중인 상태의 결과, 또는 그 상태에서 실행한 조회(lookup) 결과를 받습니다. 제출(submit)이 끝난 신고서는 작성 취소할 수 없어 409 로 거절합니다. 같은 조직과 환경, 같은 기관 연결에서 이 신고 유형으로 성공한 작업이어야 하고 아니면 진행하지 않고 거절하며, 받지 않는 작성 상태의 결과이면 409 로 거절합니다.
account_link_idNo연동 ID(UUID v4). 선택 입력입니다. 비워 두면 서버가 API 키로 연동을 찾아 씁니다. 같은 기관에 인증서를 여러 개 연동했을 때만 직접 입력해 주세요. 기관마다 ID 가 다릅니다.
confirmation_tokenNo첫 호출이 돌려준 1회용 확인 토큰입니다(오류 WRITE_CONFIRMATION_REQUIRED). 같은 인자에 이 값을 그대로 넣어 다시 호출하면 실행됩니다. 10분 뒤 만료되고 한 번만 쓸 수 있습니다.
expected_snapshot_hashYessource_job_id 작업 결과의 snapshot_hash 를 그대로 입력합니다(소문자 16진수 64자리). 그 작업의 내용과 맞지 않으면 진행하지 않고 작성 내용이 바뀌었다는 오류(409)로 거절합니다.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=true; the description goes far beyond them by stating irreversibility ('되살릴 수 없습니다'), the mandatory two-phase confirmation flow, the WRITE_CONFIRMATION_REQUIRED error, the 1-use/10-minute token, token invalidation when any argument changes, that the preview must be shown verbatim to the user, and that each call creates a backend job.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The safety-critical content is front-loaded and well ordered, but the write/mutation fact is restated three times ('이 도구는 기관의 기록을 바꿉니다', '순수 읽기 전용이 아닙니다', '기관 데이터 변경은 도구별 실행 내용과 기존 확인 절차를 따릅니다'), and the XBOSS job sentence adds little for an agent deciding how to call it.

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?

Although there is no output schema, the description still explains what the call returns (a preview plus a one-time confirmation_token) and which error drives the retry. For a destructive, two-phase operation with a login prerequisite, an agent has everything needed to call it correctly and safely.

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, but the description adds real meaning: source_job_id must be the job_id of the immediately preceding step that handled this draft, and confirmation_token comes from the first call's preview response and must be replayed with identical arguments. It does not explain expected_snapshot_hash beyond what the schema already says.

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?

The description opens with the prerequisite then states a specific verb+resource: cancelling an in-progress withholding late-report draft ('기관에 작성 중인 원천세 기한후신고서를 취소합니다'). It is clearly distinguished from submit/preview siblings by scope ('작성 중' only) and from filed-report deletion.

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 precondition (call hometax__session__login first with the same account_link_id) and an explicit exclusion with a redirect path: already-filed returns cannot be cancelled, use a deletion request ('신고 삭제신청') instead. The gap is that the deletion tool is described conceptually rather than named, so the agent must still search for it.

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