Skip to main content
Glama
okdoittttt

ko-stock-mcp

by okdoittttt

get_stock_trade_info

Retrieve daily trade info for a Korean stock by stock code and business date. Get closing price, change, volume, market cap, and more directly from KRX.

Instructions

특정 종목의 특정 영업일 일별 매매정보(시세)를 조회합니다.

종가(TDD_CLSPRC), 전일대비(CMPPREVDD_PRC), 등락률(FLUC_RT), 시/고/저가, 거래량(ACC_TRDVOL), 거래대금(ACC_TRDVAL), 시가총액(MKTCAP), 상장주식수(LIST_SHRS) 등을 KRX 원본 필드 그대로 반환합니다.

bas_dd는 반드시 영업일(YYYYMMDD)이어야 합니다. 주말/공휴일이면 데이터가 없으니, get_today_date로 오늘을 확인하고 비영업일이면 직전 영업일로 다시 조회하세요. market을 모르면 생략하세요 — 시장을 자동 판별합니다.

Args: stock_code: 종목 단축코드(6자리, 예: 005930). bas_dd: 기준 영업일(YYYYMMDD). market: KOSPI | KOSDAQ | KONEX. 생략 시 자동 판별.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bas_ddYes
marketNo
stock_codeYes
Behavior3/5

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

Description mentions that data may be absent on weekends/holidays and that the tool returns KRX original fields. However, with no annotations provided, it lacks details on side effects, authentication requirements, or rate limits. The behavioral disclosure is minimal but adequate for a read-only query.

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 well-structured with a main paragraph followed by an Args list. It is concise, with each sentence providing necessary information. No redundant or irrelevant text. Could be slightly more concise but overall efficient.

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?

Given the absence of an output schema, the description lists the specific fields returned (closing price, change, volume, etc.) and mentions they are KRX original fields. It covers purpose, parameter meaning, usage constraints (business day), and return values, making it complete for this simple tool.

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?

Input schema has 0% description coverage, so the description must compensate. It does so by explaining each parameter: stock_code as 6-digit code with example, bas_dd as YYYYMMDD, and market as a list of options with auto-detect behavior. This adds significant meaning beyond the schema structure.

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?

Description clearly states the tool queries daily trading info for a specific stock on a specific business day. It lists the specific fields returned and distinguishes from siblings via mentioning get_today_date for date checks. The verb '조회하다' and resource '특정 종목의 특정 영업일 일별 매매정보' are specific and unique among siblings.

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?

Description provides explicit guidance: bas_dd must be a business day, and if not, use get_today_date to find the previous business day. It also notes that market can be omitted for auto-detection. However, it does not explicitly exclude other scenarios or compare against all siblings.

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/okdoittttt/ko-stock-mcp'

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