Skip to main content
Glama

Which Stock Is Cheapest

which_stock_is_cheapest
Read-onlyIdempotent

Ranks two or more companies by the gap between price and owner-earnings value, from their SEC filings, with the loss-makers and the unvaluable named rather than dropped. Same engine as compare_valuations. Example questions: "Which is cheaper, Coke or Pepsi?"; "Rank AAPL, MSFT and GOOGL on value"; "Which of my stocks is most overvalued?"

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": {
      "companies": "<companies>"
    },
    "name": "which_stock_is_cheapest"
  }
}

Input Schema

NameRequiredDescriptionDefault
companiesYesTicker and current share price for each company

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open-world), so the description's added value is in disclosing that loss-makers and unvaluable companies are named rather than dropped — a real behavioral trait that affects result interpretation. It also discloses the data source (SEC filings) and that the ranking works off user-supplied prices. Missing: any note on latency, auth, or failure modes when a ticker doesn't file with the SEC.

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?

Front-loaded with the core action, followed by an important behavioral caveat, a sibling pointer, and three illustrative queries. The example questions earn their place by disambiguating intent, though the sibling pointer is vague enough to add words without adding clarity.

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 no output schema, the description carries the burden of describing return values, and it partially does so — a ranking with loss-makers and unvaluable entries surfaced rather than filtered. It stops short of stating the returned fields (rank, gap value, verdict) or error behavior for non-filing tickers, which is a visible but modest gap for a one-parameter tool.

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

Parameters3/5

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

Schema description coverage is 100%: ticker format and example, price in dollars with exclusiveMinimum, and the 2-8 array bounds are all documented in the schema. The description reinforces that prices are supplied by the caller and tickers must be SEC-filing US listings, but adds no new semantics beyond that. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a concrete verb and resource: ranks two or more companies by the gap between price and owner-earnings value, sourced from SEC filings. Scope is explicit (2+ companies) and the sibling reference to compare_valuations hints at overlap, but it never explains how the two differ, so the distinguishing element is only partially covered.

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 example questions ("Which is cheaper, Coke or Pepsi?", "Rank AAPL, MSFT and GOOGL") clearly imply the intended use case, and pointing readers to "the same engine as compare_valuations" situates the tool among its alternatives. However, there is no explicit statement of when to prefer this over compare_valuations or is_this_stock_undervalued, and no exclusions, so an agent must infer the boundary.

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.