Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

get_financial_batch

Read-onlyIdempotent

Retrieve key financial ratios (PER, PBR, ROE, operating margin, debt ratio, dividend yield) for up to 30 stock codes in a single table to compare multiple stocks at once.

Instructions

재무벌크 — 여러 종목의 핵심 재무지표(PER/PBR/ROE/영업이익률/부채비율/배당률)를 한 표로.

⭐ 종목 비교의 기본 도구. "A와 B를 PER·PBR로 비교", "이 5종목 중 저평가", "업종 내 비교" 같은 요청에 get_financial을 종목마다 부르지 말고 이걸 쓰세요. (실측: 5종목 비교 시 get_financial 5회가 전체 토큰의 78%를 차지했습니다.)

한 종목의 전체 지표(연간·분기 시계열, EPS/BPS/유보율 등)가 필요하면 그때만 get_financial을 쓰세요.

Args: codes: 종목코드 6자리 리스트 (최대 30개)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false. The description adds useful behavioral context: it returns a consolidated table, covers a specific metric subset, and avoids the token overhead of repeated calls. No contradiction with annotations.

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 front-loaded with a one-line summary, then gives clear usage guidance and parameter details. The token-cost measurement sentence is extra but reinforces the sibling-tool selection rule. No redundant information.

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?

For a single-parameter batch read tool with an output schema, the description fully covers what data is returned, when to use it versus alternatives, and the input format/limit. Nothing needed to invoke it correctly is missing.

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?

Schema description coverage is 0%, so the description must compensate. It defines codes as a 6-digit stock code list with a maximum of 30 items, which is essential validation the schema lacks. It does not address empty-list or invalid-code behavior, but it is sufficient for the single parameter.

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 core financial metrics (PER/PBR/ROE/operating margin/debt ratio/dividend) for multiple stocks in one table. It also explicitly distinguishes this from the per-stock get_financial tool.

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 gives explicit when-to-use guidance: any multi-stock comparison or valuation request should use this batch tool instead of calling get_financial repeatedly. It also states get_financial should only be used when full single-stock time-series indicators are needed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.