Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

get_theme_stocks

Fetch stocks in a specific theme using partial name matching. Returns up to 30 stocks with optional inclusion reason.

Instructions

테마종목 — 특정 테마에 속한 종목 리스트를 가져옵니다. "반도체 테마 종목", "2차전지 관련주", "AI 테마주" 같은 질문에 사용합니다. 테마명 부분 매칭을 지원합니다.

Args: theme_name: 테마명 (예: "2차전지", "AI", "반도체") count: 반환할 최대 종목 수 (기본 30) include_reason: 편입사유 포함 여부. False로 하면 토큰 대폭 절감. "왜 이 테마에 들어갔는지" 필요 없으면 False 권장.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
theme_nameYes
countNo
include_reasonNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description covers partial matching for the theme name and parameter guidance (include_reason affecting token usage). It is a read-only operation with no destructive hints needed. The description adequately discloses behavioral traits.

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 and front-loaded with the purpose, followed by parameter explanations. It is well-structured in Korean with clear parameter names. Minor improvement could be using bullet points, but it is effective.

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 low complexity (3 parameters, no nested objects) and presence of an output schema, the description covers purpose, parameter semantics, and a key behavioral trait (partial matching). It is complete enough for a simple list tool.

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?

Schema description coverage is 0%, but the description provides detailed explanations: theme_name with examples, count with default value, and include_reason with a strategic recommendation to omit for token savings. This adds significant meaning beyond the schema.

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 retrieves stocks belonging to a specific theme, with concrete example queries. It also mentions partial matching for the theme name. This distinguishes it from siblings like list_themes (which lists themes) and get_sector_stocks (by sector).

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 provides example use cases and implies usage for theme-based stock queries, but it does not explicitly state when not to use it or compare to alternatives like list_themes for discovering available themes.

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