Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

scan_to_excel

Scan multiple stocks to gather basic info, chart statistics, and financial indicators, then save to Excel for repeated filtering and analysis.

Instructions

시장스캔 — 여러 종목의 기본정보+차트통계+재무지표를 한 번에 수집해 Excel로 저장.

⭐ 로컬 캐시 패턴: 한 번 스캔해두면 이후 query_excel로 즉시 반복 조회 가능. DB 없이도 HTS 같은 빠른 분석 경험을 제공합니다.

사용 흐름:

  1. scan_to_excel(KOSPI 시총 100개 코드) → 파일 저장 (한 번)

  2. query_excel(파일경로, 조건) → 즉시 필터링 (반복)

  3. query_excel(파일경로, 다른 조건) → 즉시

Args: codes: 종목코드 리스트 (최대 500개) days: 차트 통계 과거 일수 (기본 260 = 52주) include_financial: 재무지표(PER/PBR) 포함 여부 filename: 파일명 (비우면 자동 생성)

Returns: 저장된 파일 경로 + 컬럼 목록

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codesYes
daysNo
include_financialNo
filenameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, but the description explains it saves to file, mentions local caching, and limits codes to 500. Some gaps remain (e.g., overwrite behavior, error handling), but overall good transparency for a scan tool.

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 title, intro, callout, numbered usage flow, parameter list, and return info. Some redundancy in the flow but front-loaded with key info.

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 tool's 4 parameters, file output, and return type, the description covers purpose, parameters, usage pattern, and return value. The output schema existence reduces the need for detailed return description.

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?

Despite 0% schema coverage, the description adds detailed explanations for each parameter (codes max 500, days default 260 weeks, include_financial for PER/PBR, filename auto-generated if empty), fully compensating for the schema gap.

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 collects basic info, chart statistics, and financial indicators for multiple stocks and saves to Excel. It is distinct from sibling tools that retrieve specific data points.

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 a usage flow (scan once with this tool, then repeatedly query with query_excel), explicitly guiding the agent on when to use this tool versus 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