Skip to main content
Glama
mohantee

StockAnalysis

by mohantee

compare_peers

Compare a stock with sector peers on P/E, ROE, margins, growth, and beta. Get radar charts and sortable tables to benchmark relative performance.

Instructions

Compare a stock with its sector peers.

Identifies peer companies in the same sector and compares key metrics including P/E, ROE, margins, growth, and beta using radar charts and sortable data tables. A file:/// link to the interactive dashboard is included — always share it with the user.

Args: ticker: Stock ticker symbol (e.g., AAPL, RELIANCE.NS)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickerYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the output artifacts (radar charts, sortable data tables, a file:/// interactive dashboard link) and gives an explicit directive to always share that link. Permissions/rate limits are not addressed, but for a read-only comparison this is a minor gap.

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?

Content is front-loaded with purpose first, then output behavior, then args. It is slightly padded by an Args block that partly duplicates the schema, but there is no real waste.

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 single-parameter tool with an output schema, the description is complete enough: it covers purpose, compared metrics, and output artifacts. Return values are already covered by the output schema, so no further explanation is needed for correct invocation.

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 0% (only 'type: string' for ticker), so the description must compensate, and it does by defining ticker as a stock ticker symbol and giving concrete examples including an international format (AAPL, RELIANCE.NS). This is meaningfully more than the bare schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (compare) and resource (a stock vs its sector peers) and enumerates the metrics compared (P/E, ROE, margins, growth, beta). This clearly distinguishes it from get_stock_price or get_financials, though it does not explicitly contrast with the similarly-named sibling get_sector_overview.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance and no alternatives are named. The agent must infer from the purpose that this tool is for peer comparison rather than standalone analysis, but no conditions or exclusions are provided to route between the six sibling tools.

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