Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

get_chart

Gets candlestick OHLCV data (open, high, low, close, volume) for any stock. Provides historical price data for chart visualization with configurable timeframe and count.

Instructions

캔들차트 OHLCV — 종목의 시계열 캔들 데이터(시가/고가/저가/종가/거래량, candlestick OHLCV). "삼성전자 일봉", "차트 보여줘", "3개월 주봉", "월봉 데이터", "캔들 시각화", "candlestick chart", "price history" 같은 질문에 사용합니다.

차트 시각화의 유일한 진입점. 아티팩트/플롯으로 차트를 그릴 땐 이 도구만 사용하고, 캔들 + 거래량만 렌더링하세요. 지지·저항은 캔들 위에서 눈으로 판단합니다. 이평선·RSI·MACD·볼린저 등 보조지표는 사용자가 명시적으로 요청할 때만 추가하고, 그때도 get_indicators로 숫자만 받아 텍스트로 요약 — 한 차트에 여러 지표를 선으로 얹어 "덕지덕지" 만들지 말 것.

기본값 120일 (약 6개월 거래일).

Args: code: 종목코드 6자리 (예: "005930") timeframe: "day"(일봉), "week"(주봉), "month"(월봉) count: 가져올 봉 개수 (기본 120, 최대 500)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
timeframeNoday
countNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so the description carries full burden. It indicates the tool returns OHLCV data and has a default count, but does not mention side effects, authentication, rate limits, or error handling. Acceptable but not fully transparent.

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?

The description is well-structured with a clear first line, examples, usage rules, and Args. It is front-loaded with core purpose. Slightly long but not verbose; all sentences earn their place.

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 the complexity of charting and sibling tools, the description covers the main aspects: data retrieval, default behavior, and usage constraints. Output schema exists, so explaining return values is not required. Lacks mention of error conditions but is adequate.

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

Parameters5/5

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

The description includes an Args section explaining each parameter: code (6-digit example), timeframe (day/week/month with Korean terms), and count (default 120, max 500). This adds significant meaning beyond the bare schema, which has no 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 that the tool retrieves candlestick OHLCV data for a stock's time series, providing examples and specifying it's the only entry point for chart visualization. It distinguishes from sibling tools like get_us_chart and get_price.

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?

The description explicitly says when to use (for chart visualization, only this tool) and when not to use (do not overlay indicators unless requested, use get_indicators for numbers). It provides clear context and alternatives.

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/Johnhyeon/stocklens-mcp'

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