Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

get_us_chart

Retrieve US stock historical OHLCV price data. Specify ticker, period, interval, and row limit to analyze candle charts or time series for backtesting.

Instructions

US stock chart OHLCV — 미국 주식 시계열 캔들 데이터 (US historical price data). "AAPL 차트", "Tesla 1년 주가", "NVDA history", "월봉" 같은 질문에 사용합니다.

⭐ US 주식의 시계열/차트 진입점. 한국 주식은 get_chart 사용.

Args: ticker: US 티커 (예: "AAPL") period: "1d","5d","1mo","3mo","6mo","1y","2y","5y","10y","ytd","max" (기본 3mo) interval: "1m","5m","15m","30m","1h","1d","1wk","1mo" (기본 1d) prepost: 프리/포스트 마켓 포함 (intraday interval에서만 유효) limit: 반환 최대 행수 (기본 500, 최대 5000). 토큰 소비 보호용 상한. 10년 일봉(2,515행) · 백테스트 용도엔 2000~5000으로 올려 사용. 더 큰 데이터는 export_us_to_excel로 파일 저장 권장 (토큰 0).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickerYes
periodNo3mo
intervalNo1d
prepostNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It explains that prepost only works for intraday intervals, that limit protects token consumption, and that larger data should be obtained via export. It does not mention any side effects or authorization needs, but the read-only nature is implied.

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 an English title, Korean usage context, and an Args section. It is front-loaded with purpose and usage. Although it is relatively long, every sentence adds value, and it is not redundant.

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?

Considering the tool has an output schema (not shown but present), the description adequately covers the what, when, and how. It mentions token consumption and limits. Minor omission: it doesn't explicitly state the return type (OHLCV fields), but the output schema likely fills that gap.

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?

Schema description coverage is 0%, but the description adds significant meaning to all five parameters: ticker (example), period/interval (lists valid values), prepost (notes intraday only), and limit (explains default, max, and use cases). This fully compensates for lack of 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 returns US stock OHLCV data (historical price data) and explicitly distinguishes it from get_chart for Korean stocks. It also provides specific example queries like 'AAPL 차트' and 'Tesla 1년 주가', making the purpose very clear.

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 says to use this tool for US stock chart questions and advises using get_chart for Korean stocks. It also mentions when to use export_us_to_excel for larger data. However, it does not differentiate from get_us_price, which could be used for simpler price data.

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