Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

search_stock

Read-onlyIdempotent

Look up Korean stock tickers by company name or 6-digit code. Resolve the exact ticker before price or chart queries to avoid incorrect stock matches.

Instructions

종목코드조회 (stock lookup) — 한국 주식 종목명/코드 조회 전용 도구.

search와 동일 기능. 도구 디스커버리에서 "stock"/"ticker"/"종목" 키워드로 빠르게 매칭되도록 명확한 이름을 갖는 별명입니다.

⚠️ 종목명만 있고 6자리 코드를 모를 때 이 도구를 먼저 호출해야 합니다. 코드 추측(guessing) 금지. 다른 도구(get_price, get_chart 등)에 잘못된 코드를 넣으면 엉뚱한 종목이 조회됩니다.

Args: query: 종목명(한/영) 또는 6자리 코드. 예: "알멕", "Samsung", "005930"

Returns: 매칭된 종목 리스트. 여러 개면 사용자에게 확인 요청 필요.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds behavioral context beyond annotations: it warns against code guessing, explains the consequence of wrong codes (wrong stock returned), and notes that multiple matches require user confirmation. This is valuable behavioral disclosure that annotations don't provide.

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 and front-loaded: the purpose is stated first, then usage guidance, then parameter details. It uses formatting (⚠️, Args, Returns) to improve scannability. It is slightly longer than strictly necessary but every sentence earns its place—the warning about guessing and the multi-match confirmation note are both important.

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?

For a simple one-parameter lookup tool with rich annotations and an output schema, the description is nearly complete. It covers purpose, usage, parameter semantics, and return behavior (matching list, need for user confirmation). The only minor gap is not describing the exact structure of the returned list, but the output schema likely covers that, and the description explicitly mentions the return type.

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 does: it explains the 'query' parameter accepts Korean/English stock names or 6-digit codes, and provides concrete examples ('알멕', 'Samsung', '005930'). This adds meaning beyond the bare schema, though it could be slightly more exhaustive about edge cases (e.g., partial names).

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's purpose: Korean stock name/code lookup. It specifies the resource (Korean stocks), the action (search/lookup), and explicitly distinguishes itself from the generic 'search' tool by noting it is an alias for 'search' with a clearer name for stock/ticker/종목 keyword matching. This is a specific verb+resource that differentiates it from siblings.

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 when-to-use guidance: call this tool first when you have a stock name but not the 6-digit code, and explicitly forbids guessing codes. It also warns that using wrong codes in other tools (get_price, get_chart) will return wrong stocks. This clearly routes the agent to the correct tool and away from alternatives.

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