Skip to main content
Glama
ChunSam

kiwoom-mcp-server

by ChunSam

대차거래 추이 조회

get_stock_lending

Retrieve daily stock lending trends by date. Optionally filter by stock code or set a custom date range for specific analysis.

Instructions

일자별 대차거래(주식 대여) 추이를 조회합니다 — 체결·상환·증감 주수와 대차잔고, 잔고금액 (키움 ka10068/ka20068). stock_code를 지정하면 해당 종목, 생략하면 시장 전체 집계입니다. 기본 조회 기간은 최근 30일이며 from_date/to_date로 변경할 수 있습니다. 공매도 흐름과 함께 보려면 get_short_selling을 참고하세요.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_dateNo조회 종료일 (기본값: 오늘)
from_dateNo조회 시작일 (기본값: 30일 전)
stock_codeNo6자리 종목코드 (생략 시 시장 전체 대차 추이)
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses the data granularity (daily), default period (30 days), and behavior when stock_code is omitted (market aggregate). While it doesn't mention rate limits or pagination, it sufficiently covers the tool's basic behavior.

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 three concise sentences, front-loading the main purpose and then providing parameter defaults and a sibling reference. Every sentence adds value with no repetition or filler.

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 no annotations, 100% schema coverage, and no output schema, the description covers the essential aspects: purpose, parameters with defaults, a sibling alternative, and the data source. It is sufficiently complete for an agent to use the tool correctly.

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 baseline is 3. The description adds significant value by explaining the default values for from_date and to_date (30 days ago to today) and the effect of omitting stock_code (market aggregate). This goes beyond the schema's pattern 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 the tool retrieves daily stock lending trends, specifying the data fields (contracts, repayment, balance) and the API source. It distinguishes between querying a specific stock and the entire market, making the purpose unambiguous.

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 explicitly tells users to refer to the sibling tool 'get_short_selling' for short selling flow, providing a clear alternative. It also explains the default date range and how to customize it, offering good context on when to use the 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/ChunSam/kiwoom-mcp-server'

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