Skip to main content
Glama

일일 현금영수증 취소

hometax__cash_receipt__daily_issue__cancel
Destructive

먼저 호출할 도구: hometax__session__login (같은 account_link_id). 오늘 발급한 현금영수증을 취소합니다. aprv_no 와 cshpt_cncl_rsn_cd 만 있으면 됩니다. 나머지 칸은 보내지 않으면 오늘 발급한 원본의 값으로 전송합니다(aprv_no 는 hometax__cash_receipt__daily_issue__search 에서 얻습니다). 이 도구는 기관의 기록을 바꿉니다. 첫 호출은 실행되지 않고, 전송할 내용의 미리보기와 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": {
      "aprv_no": "<aprv_no>",
      "cshpt_cncl_rsn_cd": "<cshpt_cncl_rsn_cd>"
    },
    "name": "hometax__cash_receipt__daily_issue__cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipNo봉사료. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.
trs_dtNo거래일자 YYYYMMDD. 기본은 원본 영수증의 날짜입니다(오늘 발급한 영수증만 취소할 수 있습니다).
aprv_noYes승인번호.
spl_cftNo공급가액. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.
rcpr_tinNo수취자 납세자 번호(TIN). 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.
trs_timeNo거래 시각 HHMMSS. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.
va_txamtNo부가세. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.
tota_trs_amtNo총 거래금액. 원 단위 숫자를 문자열로 입력하며 1 이상이어야 합니다. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.
account_link_idNo연동 ID(UUID v4). 선택 입력입니다. 비워 두면 서버가 API 키로 연동을 찾아 씁니다. 같은 기관에 인증서를 여러 개 연동했을 때만 직접 입력해 주세요. 기관마다 ID 가 다릅니다.
cshpt_usg_cl_cdNo용도구분코드. 0=소득공제용, 1=지출증빙용. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.
spst_cnfr_cl_cdNo발급수단구분코드. 01=주민등록번호, 02=사업자등록번호, 03=휴대전화번호, 04=카드번호. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.
cshpt_cncl_rsn_cdYes취소사유코드. 1=거래취소, 2=오류발급, 3=기타.
cshpt_trs_type_cdNo거래유형코드. 01=과세, 02=면세, 03=간이. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.
confirmation_tokenNo첫 호출이 돌려준 1회용 확인 토큰입니다(오류 WRITE_CONFIRMATION_REQUIRED). 같은 인자에 이 값을 그대로 넣어 다시 호출하면 실행됩니다. 10분 뒤 만료되고 한 번만 쓸 수 있습니다.
spst_cnfr_no_enc_cntnNo발급수단번호. 발급수단구분코드에 맞는 번호를 숫자만 입력합니다. 입력한 값 그대로 기관에 보내므로 암호화하거나 해시하지 않고, 승인번호를 여기에 입력하지 않습니다. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • changedInput schema / properties / aprv_no / description
      Previous value: -"Approval number (승인번호)"New value: +"승인번호."
    • changedInput schema / properties / cshpt_cncl_rsn_cd / description
      Previous value: -"Cancel reason code (1=거래취소, 2=오류발급, 3=기타)"New value: +"취소사유코드. 1=거래취소, 2=오류발급, 3=기타."
    • changedInput schema / properties / cshpt_trs_type_cd / description
      Previous value: -"Transaction type code (거래유형코드): 01=과세, 02=면세, 03=간이 Taken from today's original receipt when omitted."New value: +"거래유형코드. 01=과세, 02=면세, 03=간이. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
    • changedInput schema / properties / cshpt_usg_cl_cd / description
      Previous value: -"Usage class code (용도구분코드): 0=소득공제용, 1=지출증빙용 Taken from today's original receipt when omitted."New value: +"용도구분코드. 0=소득공제용, 1=지출증빙용. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
    • changedInput schema / properties / rcpr_tin / description
      Previous value: -"Recipient TIN. Taken from today's original receipt when omitted."New value: +"수취자 납세자 번호(TIN). 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
    • changedInput schema / properties / spl_cft / description
      Previous value: -"Supply value (공급가액). Taken from today's original receipt when omitted."New value: +"공급가액. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
    • changedInput schema / properties / spst_cnfr_cl_cd / description
      Previous value: -"Issue-means class code (발급수단구분코드): 01=주민등록번호, 02=사업자등록번호, 03=휴대전화번호, 04=카드번호 Taken from today's original receipt when omitted."New value: +"발급수단구분코드. 01=주민등록번호, 02=사업자등록번호, 03=휴대전화번호, 04=카드번호. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
    • changedInput schema / properties / spst_cnfr_no_enc_cntn / description
      Previous value: -"Issue-means number (발급수단번호) matching the class code, digits only. It is sent to the institution exactly as given - never encrypt or hash it, and never put an approval number here. Taken from today's original receipt when omitted."New value: +"발급수단번호. 발급수단구분코드에 맞는 번호를 숫자만 입력합니다. 입력한 값 그대로 기관에 보내므로 암호화하거나 해시하지 않고, 승인번호를 여기에 입력하지 않습니다. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
    • changedInput schema / properties / tip / description
      Previous value: -"Service charge (봉사료). Taken from today's original receipt when omitted."New value: +"봉사료. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
    • changedInput schema / properties / tota_trs_amt / description
      Previous value: -"Total transaction amount (총 거래금액, KRW as string, minimum 1) Taken from today's original receipt when omitted."New value: +"총 거래금액. 원 단위 숫자를 문자열로 입력하며 1 이상이어야 합니다. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
    • changedInput schema / properties / trs_dt / description
      Previous value: -"Transaction date YYYYMMDD. Default: the original receipt's date (only today's receipts can be cancelled)."New value: +"거래일자 YYYYMMDD. 기본은 원본 영수증의 날짜입니다(오늘 발급한 영수증만 취소할 수 있습니다)."
    • changedInput schema / properties / trs_time / description
      Previous value: -"Transaction time HHMMSS. Taken from today's original receipt when omitted."New value: +"거래 시각 HHMMSS. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
    • changedInput schema / properties / va_txamt / description
      Previous value: -"VAT amount (부가세). Taken from today's original receipt when omitted."New value: +"부가세. 입력하지 않으면 오늘 발급한 원본의 값을 씁니다."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes well beyond them: it discloses the two-step preview/confirmation protocol, the WRITE_CONFIRMATION_REQUIRED error, token single-use and invalidation on argument change, and that an XBOSS task is created per call. This is exactly the behavioral context an agent needs before 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?

Front-loads the prerequisite and the core action, then the confirmation flow, which is the right order. The closing sentences ('이 호출은 순수 읽기 전용이 아닙니다', '기관 데이터 변경은 도구별 실행 내용과 기존 확인 절차를 따릅니다') restate the earlier mutation warning and could be trimmed.

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 15-parameter destructive write with no output schema, the description covers the prerequisite, the required minimum, defaulting behavior, and the full confirmation lifecycle. Nothing an agent needs to invoke it safely is missing.

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 adds real value by stating that only aprv_no and cshpt_cncl_rsn_cd are required and that omitted fields are backfilled from today's original receipt. It does not add format or validation detail beyond the schema, so it stops short of 5.

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 with scope: '오늘 발급한 현금영수증을 취소합니다' (cancels cash receipts issued today). It also names the sibling that supplies the key input (aprv_no from hometax__cash_receipt__daily_issue__search), so an agent can distinguish it from search/modify without opening schemas.

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?

Explicitly states the prerequisite tool (hometax__session__login with the same account_link_id), the eligibility constraint (only receipts issued today), and where to obtain aprv_no. It also spells out the exact when-to-call-again condition after user consent, leaving nothing to inference.

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