Skip to main content
Glama
ChunSam

kiwoom-mcp-server

by ChunSam

ETF 기간 수익률 조회

get_etf_returns

Get period returns of an ETF alongside a benchmark index. Input stock code and optional benchmark code to compare performance over 1 week, 1 month, 6 months, or 1 year.

Instructions

ETF의 기간별(1주/1개월/6개월/1년) 수익률을 대상지수 수익률과 나란히 조회합니다 (키움 ka40001). 대상지수는 benchmark_index_code로 지정하며 기본값은 201(KOSPI200)입니다 — 코드는 get_market_index의 '코드' 값을 사용하세요 (001 코스피 종합, 101 코스닥 종합 등). 종목코드를 모르면 search_stock으로 먼저 찾으세요.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stock_codeYes6자리 ETF 종목코드 (예: 069500)
benchmark_index_codeNo비교할 지수 코드 3자리 (기본값 201 KOSPI200 — get_market_index의 '코드' 값)
Behavior4/5

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

No annotations provided, so description carries responsibility. It discloses read-only nature (조회) and data source (키움 ka40001). Could mention output format details, but no contradictory information present.

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?

Two sentences, front-loaded with purpose, then parameter guidance. No wasted words.

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?

Covers purpose and parameters well with cross-references, but lacks description of output structure. Since no output schema exists, the description should indicate what the returned data contains (e.g., period returns and index returns).

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%, but description adds meaning: explains default benchmark_index_code, cross-references get_market_index for codes, and advises using search_stock for unknown stock codes. This goes beyond bare 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 the tool retrieves period returns for ETFs alongside benchmark index returns. It uses specific verbs (조회) and resources (ETF 기간별 수익률) and distinguishes from siblings like get_etf_info and get_market_index.

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?

Provides explicit guidance: how to find stock codes via search_stock, how to get index codes via get_market_index, and the default benchmark index code. Lacks explicit when-not-to-use or alternatives, but context is sufficient for correct invocation.

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