Skip to main content
Glama

Compare valuations

compare_valuations
Read-onlyIdempotent

Ranks 2 to 8 companies on the expectations gap: the owner-earnings growth each price requires (reverse DCF) minus the growth the business actually delivered over its last five fiscal years. Negative means the price asks for less than the company has already done. Per company: owner-earnings yield, return on tangible capital, ROE, gross margin first and last year, revenue and owner-earnings CAGR, the base used (latest year for a steady riser, an average for a cyclical) and a reading; refusals and do-not-extrapolate cases are labelled instead of ranked. The gap does not move with the hurdle the way absolute values do. Example: {"companies": [{"ticker": "KO", "price": 70.1}, {"ticker": "PEP", "price": 150.2}, {"ticker": "KDP", "price": 33.4}]}.

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": "compare_valuations"
  }
}

Input Schema

NameRequiredDescriptionDefault
companiesYesTicker and current share price for each company
hurdle_pctNoRequired return for the reverse DCF, % (default 8)
long_bond_pctNoLong-bond yield in percent (5.4 = 5.4%). Default: the latest 30-year Treasury par yield, fetched from treasury.gov

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive and open-world behavior, so the description's job is to add nuance — which it does by disclosing that refusals and do-not-extrapolate cases are labelled rather than ranked, and that the earnings base is chosen per company (latest year for a steady riser, an average for a cyclical). It stops short of describing failure modes for bad tickers or how partial results are surfaced.

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 core definition and sign convention are front-loaded in the first two sentences, then the per-company output inventory follows. The output-field run-on is dense but every item is informative for a tool with no output schema; the inline example JSON is mildly redundant with the parameter schema but harmless.

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?

With no output schema, the description must carry the return-value burden, and it does — enumerating owner-earnings yield, return on tangible capital, ROE, margin endpoints, CAGRs, the base used, and a reading. It also covers the non-ranked refusal cases, leaving nothing critical an agent needs before calling.

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%, so the baseline is 3; the description earns one extra point by explaining what hurdle_pct actually does to the headline metric ("the gap does not move with the hurdle the way absolute values do"), which is genuinely non-obvious semantics. The companies array and long_bond_pct are left to the schema, which is adequate given full coverage.

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 names a specific verb and resource ("Ranks 2 to 8 companies on the expectations gap") and then defines the metric operationally as reverse-DCF implied growth minus delivered five-year growth. The explicit 2-to-8-company batch scope inherently separates it from single-stock siblings like growth_priced_into_stock, and the sign convention ("Negative means the price asks for less than the company has already done") removes interpretation ambiguity.

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?

Usage is implied by the ranking framing and by the note that "the gap does not move with the hurdle the way absolute values do," which hints at when this comparison is preferable to absolute-value screens. However, it never states when to choose this over a sibling such as which_stock_is_cheapest or growth_priced_into_stock, nor does it state prerequisites or exclusions for the user's input set.

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.