Skip to main content
Glama

compare_investment_candidates

Read-onlyIdempotent

Compare up to five stocks side-by-side using full analysis—price, technicals, chip data, fundamentals, levels, institutional flows, and current thesis. Runs in parallel with no AI cost, providing raw evidence for reasoned decision-making.

Instructions

並排比較 2-5 檔候選投資標的的深度分析(升級版 compare_stocks — 後者只看 PE/PB/殖利率,這裡跑 get_full_stock_analysis 拿到 price/technical/chip/fundamentals/levels/institutional/news 全套)+ 自動帶出每檔現有 thesis 狀態。不打 LLM(cost=$0),純粹並行 fetch + 結構化;agent 自己看 raw evidence 做 reasoning,token-effective 且避免 LLM-synthesized bias。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codesYes股票代號(逗號分隔,2-5 檔),例如 2330,2454,3008
marketNo市場 TW 或 US,預設 TW
include_thesisNo是否帶出每檔的現有 thesis(投資論點)狀態 — 預設 true
include_newsNo是否含最近 news — 預設 false(news 量大,token 重)
Behavior4/5

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

The description adds key behavioral info beyond annotations: it discloses no LLM usage (cost=0), parallel fetch, and token-effective structured output, which are not in annotations. It also explains internal invocation of get_full_stock_analysis.

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 a single paragraph but packs essential information efficiently. It could be more structured (e.g., bullet points) but remains clear and front-loads the main purpose and distinction from compare_stocks.

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 no output schema, the description covers the tool's internal behavior, parameter usage, and comparison scope. It lacks explicit return format details, but the agent can infer from parameter descriptions and the context of structured data fetch.

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 coverage is 100% with good descriptions. The description adds context: it implies default for include_thesis is true and include_news is false, and reinforces that codes expect 2-5 stocks. This adds semantic value beyond the schema alone.

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 it compares 2-5 investment candidates with deep analysis, contrasting with compare_stocks which only covers PE/PB/dividend yield. It specifies the resources (get_full_stock_analysis) and additional thesis status, making the purpose distinct among siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains when to use this tool (for deep comparison) and contrasts with compare_stocks, providing context. It also mentions parameters like include_news and include_thesis, but lacks explicit when-not-to-use or alternatives beyond compare_stocks.

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