Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

query_excel

Filter stocks from saved Excel snapshots using conditions like PER, PBR, and drawdown. Query local files directly for results.

Instructions

엑셀쿼리 — 저장된 Excel 스냅샷에서 조건에 맞는 종목을 즉시 필터링.

scan_to_excel로 만든 파일을 조회할 때 사용. HTTP 호출 없이 로컬 파일에서 필터링하므로 매우 빠릅니다. 같은 파일에 여러 조건을 번갈아 쿼리 가능.

필터 형식 (두 가지 다 지원): 간단: {"per_max": 10, "pbr_max": 1.5, "drawdown_pct_max": -30} 상세: {"per": {"max": 10, "min": 0}, "drawdown_pct": {"max": -30}}

Args: file_path: scan_to_excel로 만든 파일 경로 filters: 필터 조건 (컬럼명_max / 컬럼명_min 형식) sort_by: 정렬 기준 컬럼 (예: "market_cap", "drawdown_pct") descending: 내림차순 여부 (기본 True) limit: 반환 최대 개수 (기본 30)

Returns: 필터링된 종목 리스트 (마크다운 테이블)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
filtersNo
sort_byNo
descendingNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description discloses that it is fast due to local filtering without HTTP calls, and supports multiple queries on the same file. No annotations provided, so this is adequate but does not address error handling or side effects.

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 concise with a clear structure: general description, usage context, filter examples, and parameter list. It is efficient and well-organized.

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 0% schema coverage, the description compensates well by explaining filter formats, output format (markdown table), and the file source. Missing details like column names are acceptable for this simple query tool.

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

Parameters4/5

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

With schema coverage at 0%, the description explains the filter format with examples and lists each parameter with its role and default values, adding significant value beyond the bare schema.

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 clearly states it queries an Excel snapshot for filtering stocks, and specifies it is for files created by scan_to_excel. It distinguishes from siblings by indicating it works with local files, but does not explicitly contrast with other tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions when to use (for files from scan_to_excel) and that multiple conditions can be queried on the same file, but lacks explicit when-not-to-use or alternative tools guidance.

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