Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

get_flow

Fetch institutional and foreign investor net buying trends for a stock code. Get daily net buy/sell quantities to analyze supply and demand.

Instructions

투자자수급 — 투자자별 매매동향 (기관/외국인 순매매 주식 수)을 가져옵니다.

⚠️ 종목이 2개 이상이면 이 도구를 반복하지 말고 get_flow_batch를 쓰세요. 네이버 증권 소스 특성상 개인 순매매는 제공되지 않습니다 (기관·외국인만). "외국인 수급", "기관 순매수", "수급 분석", "누가 사고 있어" 같은 질문에 사용합니다.

Args: code: 종목코드 6자리 (예: "005930") days: 조회할 일수 (기본 20일)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
daysNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It does mention the data limitation, but it does not disclose whether the tool is read-only, has any side effects, error handling, or permission requirements, leaving behavioral aspects unclear.

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 line breaks but is somewhat verbose, including a warning and usage examples. It could be slightly more concise while retaining key information.

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?

The description covers the main purpose, limitations, and alternative tool, which is sufficient for a simple read operation. However, it does not explain the output format or any error conditions, though an output schema exists.

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?

Both parameters are described clearly: code (6-digit stock code) and days (number of days, default 20). The description covers the schema parameters fully, despite the schema itself lacking 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 fetches investor supply-demand data (institutional and foreign net trading stock counts) for a single stock, distinguishing it from the batch version. It also specifies the source limitation (no individual net trading).

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?

Explicitly instructs to use get_flow_batch when there are 2 or more stocks, and provides example user queries ('외국인 수급', '기관 순매수') to indicate when this tool is appropriate.

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