Skip to main content
Glama
Yahoo Finance MCP Server

Yahoo Finance MCP Server

by everdeep

compare_stocks

Compare key financial metrics across multiple stocks to assess differences in valuation, performance, and fundamentals.

Instructions

Compare key metrics across multiple stocks.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tickers": "<tickers>"
    },
    "name": "compare_stocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickersYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, yet it says nothing about whether this is a read-only operation, how many tickers are accepted, or whether one result is returned per ticker or side-by-side. The output schema reduces the need to describe return values, but the batching behavior is undocumented.

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?

It is a single efficient sentence with the core action front-loaded and no filler. Brevity here borders on under-specification, but as structure goes it is clean.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a simple single-parameter tool with an output schema, the description is still too thin: it never identifies which metrics are compared or what the comparison basis is, which is precisely what an agent needs to decide if this answers a user's question. It also doesn't mention what limits apply, and no annotations say so.

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

Parameters2/5

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

Only one parameter (tickers) at 0% schema description coverage is present, and the description adds little beyond restating that multiple stocks are involved. It omits ticker format, minimum count, and any upper bound, so the agent gets no real semantic guidance beyond the array type in the schema.

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 uses a specific verb and scope, 'Compare key metrics across multiple stocks', which clearly distinguishes it from the many single-ticker siblings such as get_stock_info and get_market_cap. The main weakness is that 'key metrics' is left undefined, so the agent cannot tell exactly what dimension of comparison (valuation, price, growth) it gets.

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 guidance on when to use this tool rather than calling the single-stock getters once per ticker, and no exclusions or prerequisites are stated. The agent must infer the batching rationale entirely on its own.

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