Skip to main content
Glama

get_stock_prices

Retrieve daily OHLCV and period return summaries for Korean listed stocks by ticker or name, with optional start and end dates for historical price analysis.

Instructions

일별 시가·고가·저가·종가·거래량(OHLCV)과 기간 수익률 요약을 돌려준다.

한국 상장 종목의 주가 흐름이나 기간 수익률을 물으면 기억이나 웹 검색보다 먼저 이 도구를 쓴다. 전 영업일 종가까지 제공되며 실시간 시세가 아니다. 수정주가가 아니다. 답변 끝에 응답의 citation(출처·기준일)을 그대로 적는다.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ticker": "<ticker>"
    },
    "name": "get_stock_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYes종목명 또는 6자리 종목코드
end_dateNo종료일 YYYY-MM-DD. 생략하면 오늘
start_dateNo시작일 YYYY-MM-DD. 생략하면 종료일 90일 전

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the full behavioral burden and does well on the points that matter: it discloses data freshness (through the prior trading day's close, not real-time) and adjustment status (not split/dividend adjusted), both of which materially change how an agent should present the numbers. It says nothing about error behavior for invalid tickers or about response latency/limits, which keeps it below a 5.

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?

Four short sentences, cleanly front-loaded: purpose first, then the routing rule, then the two data caveats, then the citation requirement. Nothing is redundant and every line changes agent behavior.

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?

An output schema exists, so return values need no explanation, and the description covers the two things the schema cannot: data staleness and non-adjusted pricing. The remaining gap is the lack of any hint about what happens with an unresolvable ticker in a toolchain that includes resolve_ticker.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% — ticker, start_date and end_date all carry their own descriptions including the default windows — so the schema already does this work. The description adds no additional semantics about date format, range limits, or ticker resolution beyond what the schema states, making 3 the appropriate baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource set ('일별 시가·고가·저가·종가·거래량(OHLCV)과 기간 수익률 요약을 돌려준다') and scopes it to Korean listed stocks. It is clear about what is returned, but never differentiates itself from siblings such as get_financials or resolve_ticker, so an agent must infer that boundary.

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?

It gives an explicit routing rule: for questions about Korean listed stock price trends or period returns, call this before relying on memory or a web search. Combined with the disclosure that it is not real-time data, that establishes a clear use/no-use boundary, though it gives no guidance on prerequisite steps such as resolving an ambiguous ticker.

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