Skip to main content
Glama
ChunSam

kiwoom-mcp-server

by ChunSam

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

get_net_buy_rank

Rank stocks by net buy amount for a chosen investor group (foreign, individual, pension) on KOSPI/KOSDAQ. Adjust direction and top count to see top buyers or sellers.

Instructions

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

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

No annotations are present, so the description carries the full burden. It discloses that figures are based on the last completed trading day and contrasts real-time alternatives, adding valuable temporal context beyond the schema. The performance caveat (15-20 seconds) is already covered in the schema's market parameter, so this is sufficient, though edge cases or error states are not mentioned.

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

Conciseness5/5

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

The description is information-dense yet concise, with bolded key phrases and a logical flow: verb+resource, usage examples, alternative tools, and data timing. Every sentence provides actionable guidance; no redundancy or fluff.

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 6-parameter tool with 5 enums and no output schema, the description provides complete context: what it does, when to use, when not to use, data freshness, and real-time alternatives. It fully complements the schema and sibling tools, leaving no major gaps for correct selection and invocation.

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 description coverage is 100%, providing a baseline of 3. The description adds value by giving example usages that convey parameter combinations (e.g., '사모펀드가 산 코스닥 종목' implies subject=private_fund, market=kosdaq, side=buy), and clarifies that side=net with direction=bottom gives net sell. This enriches the schema's meaning without being redundant.

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 states the tool scans all market stocks and extracts the top net buy/sell by investor subject, using a specific verb ('뽑습니다') and resource (키움 ka10066). It clearly distinguishes from sibling tools by naming get_investor_trend and get_investor_rank as alternatives, and lists the 12 selectable subjects.

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?

Provides explicit when-to-use guidance with concrete examples ('연기금이 어제 뭘 담았나', '투신 순매도 상위'). It names exact alternatives for different scenarios: get_investor_trend for a single stock, get_investor_rank for quick foreign/institution view, and get_foreign_intraday for real-time foreign-only. Also specifies data is as of the last completed trading day, clarifying the non-real-time nature.

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/ChunSam/kiwoom-mcp-server'

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