Skip to main content
Glama

detect_kline_patterns

Read-onlyIdempotent

Detect common candlestick patterns (hammer, engulfing, morning star, etc.) in stock data. Returns recent patterns with direction and confidence level for trend analysis.

Instructions

偵測股票 K 線型態(錘子、吞噬、晨星、暮星、三白兵、三黑鴉等 13 種常見反轉/持續型態)。回傳最近出現的型態清單及各自方向與信心值。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stockIdYes股票代號,例如 2330
marketNo市場 TW 或 US,預設 TW
daysNo檢視天數,預設 60
minConfidenceNo信心值下限 0-1,預設 0.6
Behavior3/5

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

Annotations already indicate read-only, non-destructive, idempotent behavior. The description adds that it returns a list of recent patterns with confidence, but does not disclose limitations or side effects beyond what annotations imply.

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 two sentences and front-loads the core functionality. It is concise without superfluous information, though it could be more structured with explicit sections.

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 tool lacking output schema, the description explains that it returns a list of patterns with direction and confidence. It names 13 common patterns, aiding the agent's understanding. Parameters are well-documented in schema, so the description is reasonably complete.

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

Parameters3/5

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

Input schema covers all 4 parameters with descriptions (stockId, market, days, minConfidence). The tool description does not add extra parameter details, but provides context about pattern types and output, which slightly supplements schema coverage.

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 specifies the tool's purpose: detecting candlestick patterns (e.g., hammer, engulfing, etc.) and returning a list with direction and confidence. It lists specific pattern types and is distinct from sibling tools, which focus on other analyses.

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 does not explicitly state when to use this tool versus alternatives, nor does it provide exclusion criteria. Usage is implied by the nature of the tool, but no guidance is given.

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/kevinlin49361128-stack/stock-analyzer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server