Skip to main content
Glama
ChangooLee

mcp-kr-g2b

by ChangooLee

get_contract_data

Query Korean public procurement contracts from G2B Nara Market. Specify an operation (goods, construction, services, foreign) and parameters to retrieve contract details, history, or search results.

Instructions

[나라장터 계약정보서비스] 조달청 나라장터 OpenAPI 조회 도구. operation 에 아래 오퍼레이션명(영문) 중 하나를 지정하고, params 에 해당 오퍼레이션의 조회조건을 dict 로 전달하세요. numOfRows/pageNo/type/serviceKey 는 자동 처리됩니다. 각 오퍼레이션의 정확한 파라미터/응답필드는 get_g2b_operation_info('contract', '') 로 확인하세요.

사용 가능한 오퍼레이션 (21개):

  • getCntrctInfoListThng: 계약현황에 대한 물품조회

  • getCntrctInfoListThngDetail: 계약현황에 대한 물품세부조회

  • getCntrctInfoListThngPPSSrch: 나라장터검색조건에 의한 계약현황 물품조회

  • getCntrctInfoListThngChgHstry: 계약현황에 대한 물품변경이력조회

  • getCntrctInfoListThngDltHstry: 계약현황에 대한 물품삭제이력조회

  • getCntrctInfoListCnstwk: 계약현황에 대한 공사조회

  • getCntrctInfoListCnstwkServcInfo: 계약현황에 대한 공사서비스정보조회

  • getCntrctInfoListCnstwkPPSSrch: 나라장터검색조건에 의한 계약현황 공사조회

  • getCntrctInfoListCnstwkChgHstry: 계약현황에 대한 공사변경이력조회

  • getCntrctInfoListCnstwkDltHstry: 계약현황에 대한 공사삭제이력조회

  • getCntrctInfoListServc: 계약현황에 대한 용역조회

  • getCntrctInfoListGnrlServcServcInfo: 계약현황에 대한 일반용역서비스정보조회

  • getCntrctInfoListTechServcServcInfo: 계약현황에 대한 기술용역서비스정보조회

  • getCntrctInfoListServcPPSSrch: 나라장터검색조건에 의한 계약현황 용역조회

  • getCntrctInfoListServcChgHstry: 계약현황에 대한 용역변경이력조회

  • getCntrctInfoListServcDltHstry: 계약현황에 대한 용역삭제이력조회

  • getCntrctInfoListFrgcpt: 계약현황에 대한 외자조회

  • getCntrctInfoListFrgcptDetail: 계약현황에 대한 외자세부조회

  • getCntrctInfoListFrgcptPPSSrch: 나라장터검색조건에 의한 계약현황 외자조회

  • getCntrctInfoListFrgcptChgHstry: 계약현황에 대한 외자변경이력조회

  • getCntrctInfoListFrgcptDltHstry: 계약현황에 대한 외자삭제이력조회

자주 쓰는 조회조건: inqryDiv(조회구분 코드, 보통 1=등록/공고일시), inqryBgnDt/inqryEndDt(YYYYMMDDHHMM 조회기간), bidNtceNo(입찰공고번호), dminsttNm(수요기관명), indstrytyNm(업종명), prdctClsfcNo(품목분류번호) 등. ⚠️ 날짜 기반 조회(inqryBgnDt/inqryEndDt 등)는 보통 한 번에 1개월 이내 범위만 허용됩니다. 기간이 길면 월 단위로 나눠 호출하세요. 'PPSSrch' 오퍼레이션은 bidNtceNm(공고명 일부)/indstrytyNm/추정가격 범위 등 상세 검색조건을 지원합니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYes오퍼레이션명(영문). 예: getCntrctInfoListThng (계약현황에 대한 물품조회)
paramsNo오퍼레이션별 조회조건 dict (예: inqryDiv, inqryBgnDt, inqryEndDt, bidNtceNo 등). 정확한 키는 get_g2b_operation_info 로 확인
fetch_allNoTrue 면 totalCount 까지 전체 페이지 수집, False 면 단일 페이지
num_of_rowsNo페이지당 결과 수(기본 500, 최대 999. 대량수집 시 요청수↓)
page_noNo페이지 번호. 지정하면 해당 페이지만 단건 조회
Behavior4/5

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

With no annotations provided, the description carries full transparency burden. It discloses that it queries an API, automatically handles some parameters (numOfRows, pageNo, type, serviceKey), supports pagination via fetch_all, and imposes a 1-month date range limit. It does not describe mutability or auth needs, but the overall behavior is well-explained.

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 description is well-structured: it starts with overall purpose, then instructions, a complete list of operations (necessary for this complex tool), common parameters, and warnings. While lengthy, it avoids redundancy and every sentence provides useful information. The list of operations could be more concise, but it helps the agent understand available sub-functions.

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?

Given the tool's complexity (21 operations, multiple optional parameters, no output schema, no annotations), the description is fairly complete. It explains how to use the tool, pagination behavior, date constraints, and directs users to get_g2b_operation_info for detailed parameter/response fields. Rate limits or exact return structure could be added, but overall it provides sufficient context for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema already describes all parameters (100% coverage), the description adds significant value: it lists common query conditions (inqryDiv, inqryBgnDt, etc.), explains that numOfRows/type/serviceKey are auto-handled, describes the meaning of fetch_all, and provides context for each of the 21 operations. This goes well beyond the schema descriptions.

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 clearly states it is a tool for querying the Korea Procurement Service OpenAPI for contract data, and lists 21 specific sub-operations. The verb 'get' and resource 'contract data' are explicit, distinguishing it from sibling tools that handle different data types like bid or industry data.

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 provides detailed usage instructions: specify an operation, pass parameters as a dict, use get_g2b_operation_info for exact fields, and handle pagination. It warns about date range limits (1 month) and explains automatic param handling. However, it does not explicitly contrast with sibling tools or state when not to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChangooLee/mcp-kr-g2b'

If you have feedback or need assistance with the MCP directory API, please join our Discord server