Skip to main content
Glama

compare_stocks

Read-onlyIdempotent

Compare key metrics of multiple stocks side-by-side including price performance, PE ratio, PB ratio, and dividend yield to identify undervalued or strong candidates.

Instructions

並排比較多檔股票的關鍵指標:股價表現、本益比(PE)、股價淨值比(PB)、股息殖利率,快速找出相對便宜或強勢的標的

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codesYes股票代號(逗號分隔,2-5 檔),例如 2330,2454,2317
marketNo市場 TW 或 US,預設 TW
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint, and idempotentHint, so the safety profile is clear. The description adds behavioral context about the specific indicators compared but does not disclose data source, freshness, limits, or output format beyond what annotations 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 a single sentence that is concise and front-loaded with purpose. It could be more structured (e.g., bullet points), but remains efficient with no wasted words.

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?

With two straightforward parameters and no output schema, the description adequately captures what the tool does. It does not describe return structure, which would be helpful, but the core functionality is complete for an agent to decide usage.

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 descriptions for 'codes' and 'market'. The description adds the specific indicators compared, which is not in the schema, enriching the semantics beyond the parameter names and types.

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 multiple stocks' key indicators (price performance, P/E, P/B, dividend yield) to find cheap or strong targets. It uses a specific verb and resource, distinguishing it from single-stock tools like get_stock_price.

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 implies usage for comparing multiple stocks, but does not explicitly state when to use this tool versus siblings or provide when-not guidance. No alternatives are mentioned.

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