Skip to main content
Glama

현금영수증 매입 내역 조회

hometax__cash_receipt__purchase__search_history

REQUIRES prior hometax__session__login call with same account_link_id. Search cash receipt purchase history. from_date/to_date are required (YYYYMMDD or YYYY-MM-DD). 국세청 rejects ranges longer than 3 months with '조회기간은 최대 3개월 까지 가능합니다.' — split longer periods into 3-month calls. Counts: totalCount (and the same value in pageInfoVO.totalCount) is the record count for this query and is never fewer than the rows in this response; collectionMeta says whether this response already holds all of them (complete) and how many came back (collectedCount). When complete is false, ask for the next page. For an authenticated call, generate and save request_idempotency_key before the first request. Reuse it with the same arguments only to recover that request after a lost response; use a new key for a new execution. Without it, calling again remains a new request. This optional key is not available to anonymous taste calls. Keep any provider-specific idempotency_key unchanged; it is a different field. 호출마다 토큰 1소진 요청 처리 시 XBOSS 작업을 생성하고 처리 결과를 저장합니다. 기관 원본의 조회 여부와 별개로 이 호출은 순수 읽기 전용이 아닙니다. 기관 데이터 변경은 도구별 실행 내용과 기존 확인 절차를 따릅니다.

Input Schema

NameRequiredDescriptionDefault
to_dateYesEnd date YYYYMMDD or YYYY-MM-DD (e.g. 20260131). Required.
page_numNoPage number (default 1)
from_dateYesStart date YYYYMMDD or YYYY-MM-DD (e.g. 20260101). Required.
max_pagesNoSafety cap when fetch_all_pages is true (default 100)
page_sizeNoPage size (default 10)
spjb_trs_ynNo현금매출명세서 발행 여부(cash-sales statement filter): 'all'=전체, 'Y'=발행분만. Default 'all'.
account_link_idNoAccount link ID (UUID v4). Optional — the server auto-resolves from your API key when omitted. Provide explicitly only when you have multiple certificates for the same provider. Each institution has a separate ID (Hometax != NHIS != NPS != FourInsure).
fetch_all_pagesNotrue collects every page instead of one (default false). Each page is a separate NTS request, so it is slower.
mrnt_txpr_dscm_noNoFilter by merchant business number (가맹점 사업자번호, hyphens ok). Optional.
request_idempotency_keyNoOptional same-request recovery key for authenticated calls; see the tool description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / request_idempotency_key
      Added value: +{
      +  "description": "Optional same-request recovery key for authenticated calls; see the tool description.",
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "pattern": "^[\\x20-\\x7E]+$",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / mrnt_txpr_dscm_no
      Added value: +{
      +  "description": "Filter by merchant business number (가맹점 사업자번호, hyphens ok). Optional.",
      +  "type": "string"
      +}
    • addedInput schema / properties / spjb_trs_yn
      Added value: +{
      +  "description": "현금매출명세서 발행 여부(cash-sales statement filter): 'all'=전체, 'Y'=발행분만. Default 'all'.",
      +  "enum": [
      +    "all",
      +    "Y"
      +  ],
      +  "type": "string"
      +}
  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 declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description goes substantially beyond that by explaining why the call is not purely read-only (token consumption per call, XBOSS job creation and result storage), and by disclosing the upstream NTS 3-month validation with its exact error text. It also explains the response count semantics (totalCount equals pageInfoVO.totalCount, collectionMeta.complete vs collectedCount), which is behavior an agent cannot get from the annotations.

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 in capitals and the date-range, count and idempotency rules follow in a logical order, so an agent can extract the operational constraints quickly. It is dense but mostly earns its length; the trailing Korean boilerplate about 기관 데이터 변경 and the stray note about 'anonymous taste calls' are low-value filler that could be trimmed.

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 10-parameter query tool with no output schema, the description supplies what the schema cannot: auth prerequisite, range limit and chunking, pagination termination logic, and an explicit account of the returned count fields. Only the relationship to the sibling sales-history tool and any per-call rate expectations remain unstated.

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 beyond the schema for from_date/to_date (the 3-month ceiling and the required splitting strategy) and for request_idempotency_key (generate before first request, reuse only to recover a lost response, new key for a new execution). It also clarifies implicitly how fetch_all_pages/max_pages interact with collectionMeta.

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 states a specific verb and resource ('Search cash receipt purchase history') and the Korean title identifies it as 현금영수증 매입 내역 조회. It does not name the closest siblings (hometax__cash_receipt__sales__search_history or daily_issue__search), so an agent must infer the purchase-vs-sales distinction from the tool name alone.

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?

Strong operational guidance: it declares the session-login prerequisite with matching account_link_id, mandates from_date/to_date, explains that ranges over 3 months are rejected and must be split into chained calls, and tells the agent when to request the next page versus when collectionMeta.complete means it is done. It also gives clear when-to-reuse versus when-to-rotate rules for the idempotency key. The only gap is that no alternative sibling tool is named.

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