Skip to main content
Glama
ChunSam

kiwoom-mcp-server

by ChunSam

투자자 주체별 순매수 상위 (시장 전체)

get_net_buy_rank

Rank KOSPI or KOSDAQ stocks by net, buy, or sell amount for any of 12 investor types. Choose top/bottom ranks to see the most bought or sold stocks.

Instructions

시장 전 종목을 훑어 투자자 주체별 순매수 상위를 뽑습니다 (키움 ka10066). '연기금이 어제 뭘 담았나', '투신 순매도 상위', '사모펀드가 산 코스닥 종목'처럼 주체를 정하고 종목을 찾을 때 쓰세요. 개인·외국인·기관계 외에 금융투자·보험·투신·은행· 연기금등·사모펀드·기타금융·국가·기타법인까지 12주체를 고를 수 있습니다. 종목을 이미 정했다면 get_investor_trend(종목 1개의 주체별 시계열)가 낫고, 외국인·기관만 빠르게 보려면 get_investor_rank(상위 25종목)가 가볍습니다. market(kospi 또는 kosdaq)은 필수이고 전체 시장을 한 번에 보는 옵션은 없습니다. 수치는 직전 완료 거래일 기준이며, 장중 실시간은 get_foreign_intraday(외국인 한정)를 쓰세요.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNo표시할 종목 수 (기본값 20, 최대 50)
sideNonet=순매수(기본), buy=매수 총량, sell=매도 총량
unitNo단위 (기본값: amount=백만원)
marketYes시장 (필수). 키움이 종목코드 순으로만 주기 때문에 전 종목을 받아 서버가 정렬합니다 — 코스피 약 1,320종목, 코스닥 약 1,820종목이라 조회에 15~20초 걸립니다
subjectYes투자자 주체. individual=개인, foreign=외국인, institution=기관계, financial_inv=금융투자, insurance=보험, trust=투신, bank=은행, pension=연기금등, private_fund=사모펀드, etc_finance=기타금융, nation=국가, etc_corp=기타법인
directionNotop=큰 순(기본), bottom=작은 순. side=net에서 bottom이 순매도 상위입니다

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.36.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations provided, so description carries the burden. It mentions performance (15-20 seconds) and clarifies that market is required, plus explains side=net bottom as net sell. Does not discuss data freshness or potential errors, but adequate for a data retrieval tool.

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?

Description is informative but slightly verbose due to multiple alternative tool references and repeated mentions. However, it remains organized and each sentence adds value; no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema is provided, yet the description does not explain the return structure (e.g., list of stocks with net buy amounts). It mentions '순매수 상위' but lacks explicit field details. Given the tool is a ranking query, users might need to infer the output format. Performance note is helpful, but return format clarification would improve completeness.

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?

Every parameter is described with enum values and Korean translations (e.g., subject: individual=개인, foreign=외국인). The market parameter includes additional context about query cost. Schema coverage is 100% and description adds meaningful context beyond the enum names.

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?

Clearly states it ranks net buy by investor type and market, distinguishing from siblings like get_investor_trend and get_investor_rank by specific use cases.

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 when to use (searching stocks by investor type) and when not to use (already have a stock -> get_investor_trend; only foreign/institution -> get_investor_rank; real-time foreign -> get_foreign_intraday). Provides clear alternative guidance.

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