Skip to main content
Glama

Correlated Stocks

GetCorrelatedStocks
Read-only

Get the stocks whose daily price returns are most (or least) correlated with one stock — Pearson correlation of daily log returns on comparable raw closes (dividends excluded), computed over the trading days both stocks priced, never on raw price levels. Scope picks the candidate universe: Industry (default) ranks the subject's direct industry peers; Sector widens to sibling industries; Market ranges across the ~1,500 largest listed names and surfaces cross-industry relationships the classification misses (suppliers, commodity proxies). direction=Negative flips the ranking to the strongest inverse movers (hedge candidates). Candidates need a $100M market cap and enough overlapping trading days with the subject; each row reports the observation count behind its coefficient. Use GetStockPrices for the underlying series and the screener for fundamentals-based peer sets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoTrailing calendar window in days for the return series (default 180, clamped to 30-730).
scopeNoCandidate universe: Industry (default), Sector, or Market (~1,500 largest listed names).Industry
tickerYesExact listed ticker symbol (e.g., GOOG, GOOGL, BRK-A or BRK-B). Dot class-share notation such as BRK.A is also accepted.
directionNoPositive (default) for the strongest co-movers, Negative for the strongest inverse movers.Positive
maxResultsNoMaximum number of stocks to return (default 10, max 50).

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses critical behavioral details: the correlation is computed on log returns, not raw price levels, dividends are excluded, only overlapping trading days are used, and candidates must meet a $100M market cap and sufficient overlapping days. It also notes that each row reports the observation count, adding transparency about data quality without contradicting annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense paragraph that front-loads the main action and method, then efficiently covers scope options, direction, filters, output details, and alternatives. Every sentence adds value, with no redundancy or filler, making it highly information-dense yet concise.

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

Completeness5/5

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

Despite the absence of an output schema, the description is nearly complete: it explains the computation method, candidate selection criteria, output semantics (each row reports observation count), and provides explicit cross-references to related tools. It gives users a thorough understanding of what to expect and when to use it, with no significant gaps for a read-only data retrieval tool.

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?

With 100% schema coverage, the schema already documents parameter basics. The description adds meaningful context for scope (e.g., 'Industry ranks the subject's direct industry peers; Market surfaces cross-industry relationships') and direction (negative for hedge candidates), which goes beyond the schema's brief descriptions. However, it does not add much for days or maxResults, which are adequately covered by 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 the tool's function: finding stocks whose daily price returns are most or least correlated with a given stock. It specifies the statistical method (Pearson correlation of daily log returns) and distinguishes itself from sibling tools by emphasizing correlation rather than price or fundamentals.

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

Usage Guidelines5/5

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

It explicitly instructs when to use this tool versus alternatives: 'Use GetStockPrices for the underlying series and the screener for fundamentals-based peer sets.' It also explains the scope choices (Industry, Sector, Market) and when negative correlation is useful for hedging, providing clear context for tool selection.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

B3.4/5.0
Disambiguation4/5

Most tools have clearly distinct purposes, with detailed descriptions that cross-reference related alternatives. A few near-duplicate names could cause misselection, notably SearchDocument versus SearchDocuments and GetCftcPositioning versus GetLatestCftcPositioning.

Naming Consistency5/5

Tool names consistently follow a VerbNoun camelCase pattern: Get for retrievals, Search for discovery, List/Read for document access, and Add/Close/Remove/Update/Watch/Create/Delete for portfolio mutations. Despite the large count, there is no mixing of naming conventions or unpredictable verb styles.

Tool Count1/5

108 tools is an extreme surface area, far beyond the 3-15 well-scoped range and well past the 25+ threshold. Even for a broad financial data platform, this creates a heavy selection burden and substantial context overhead for agents.

Completeness4/5

The server covers an unusually wide domain: prices, fundamentals, SEC filings, options, insider activity, 13F holdings, short interest, macro data, funds, IPOs, and full portfolio lifecycle management. Notable gaps remain, such as a basic company profile/ticker-resolution tool, dividend history, and analyst estimates, so it is not a perfect 5.