Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

get_multi_chart_stats

Retrieve aggregate statistics (high, low, current price, drawdown) for multiple stocks in one batch call. Ideal for screening stocks based on period performance.

Instructions

차트통계벌크 — 여러 종목의 집계 통계(최고가/최저가/현재가/낙폭)를 한 번에 병렬 조회.

⚠️ 시계열 도구 아님. 기간 내 요약값(집계)만 반환. 캔들 차트·시계열 시각화는 get_chart 별도 호출 필수. 이름에 "차트"가 들어 있지만 시계열 OHLCV를 주지 않음.

⭐ 스크리닝 필수 도구. 개별 get_chart 를 N번 호출하지 말고 이것 한 번으로 해결.

각 종목의 지정 기간 내 (모두 집계값):

  • high/high_date: 최고가 + 그날 날짜

  • low/low_date: 최저가 + 그날 날짜

  • current_price: 현재가 (오늘 종가)

  • drawdown_pct: 현재가가 최고가 대비 얼마나 내렸는지 (음수)

  • recovery_pct: 현재가가 최저가에서 얼마나 올랐는지 (양수)

  • period_return_pct: 기간 시작 대비 수익률

  • avg_volume: 평균 거래량

활용 예시:

  • "52주 고점 대비 30% 이상 하락한 종목 찾기" → days=260, drawdown_pct < -30 필터

  • "52주 신고가 근접 종목" → days=260, drawdown_pct > -5 필터

  • "가격 박스권 횡보 종목" → drawdown_pct와 recovery_pct 모두 작은 종목

Args: codes: 종목코드 리스트 (최대 100개) days: 과거 조회 일수 (기본 260 = 52주)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codesYes
daysNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so the description carries full burden. It discloses that the tool returns only aggregate values, not time series, and provides field details. It mentions parallel execution and a max of 100 codes. Minor gap: no mention of rate limits or authentication.

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 bullet points, warning, and examples. It is informative without being overly verbose. A slight deduction for using multiple languages but still 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 output schema exists (not shown), the description still explains return fields in detail. It covers filtering use cases, distinguishes from siblings, and provides default values. Comprehensive for this bulk stats tool.

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 has 0% description coverage; the description fully compensates by explaining each parameter: codes (list, max 100), days (default 260 = 52 weeks), and provides usage examples. Adds meaning beyond schema.

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 fetches aggregate statistics (high/low/current/drawdown) for multiple stocks in parallel. It explicitly differentiates from sibling tool get_chart, which provides time series data.

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 provides explicit usage guidance: it is essential for screening, should be used instead of multiple get_chart calls, and includes concrete examples (e.g., '52주 고점 대비 30% 이상 하락한 종목'). It also warns not to use for time series.

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