Skip to main content
Glama

Fair Value Calculator

Compare stocks

compare_stocks
Read-onlyIdempotent

Compare up to 5 stocks side by side with Fair Value Calculator values (Free: first 2 stocks as snapshots, further symbols are listed in not_compared; Pro: up to 5 with fair values). Use it for "which is better valued" questions about named stocks. Fields: valuation_status (undervalued = price at least 10% below fair value, overvalued = price at least 10% above fair value, else near_fair_value; no_valuation = covered, but no fair value is shown right now, note says why), upside_band (distance from price to fair value in 10-point bands, e.g. "10_to_20", "above_30", "below_-30"), quality_score (0-100 business quality), evidence_level (how much audited data backs the value), price_as_of (date of the share price the valuation status refers to), calculated_at (date the valuation models last ran for this stock), requested_symbol with listing = other_listing_same_company (present when the answer is about another listing of the same company than the symbol asked for, the listing the website shows for it, e.g. 939.HK answered with the Shanghai listing 601939.SHG; fair value and currency refer to the listing in symbol), deep_link (full analysis page on fairvalue-calculator.com with the fair value history chart and the result of each valuation model with its bear, base and bull case), trend12 (uptrend: true when the price one month ago was higher than twelve months ago, false when not, null when not known), trend12_pct (that change in percent), trend_arrow (arrow on the site: up = rising, sideways = sideways down to -10 percent, down = falling), buy_rules (the three buy rules of the Fair Value Calculator strategy, each true, false or null: fair_value = fair value upside of at least fair_value_min_pct percent, quality = quality score of at least quality_min, measured as in the backtest without the AI Quality points, trend = uptrend, all = all three met; quality_rule = the quality score the rule decided on, present only when it decides differently from quality_score; upside_rule = the fair value upside in percent the rule decided on (fair value before the cycle and dilution adjustment), present only when it decides differently from the shown upside; the strategy only buys stocks with all three), fair_value_adjustment (present together with upside_rule: the shown fair value was adjusted after the model blend, the buy rule decides on the value before; reason = cyclical_peak_year (a record profit year of a cyclical business is not carried forward in full), cyclical_trough_year (a weak year of a cyclical business is not carried forward in full), dilution_new_shares (new shares lower the value per share) or adjusted; before and now = the fair value before the adjustment and the shown fair value, only where the fair value itself is shown), fair_value_last_change (only in the verdict, present when the shown fair value changed by 15 percent or more within the last 30 days: date, before and after (the shown fair value before and right after that change; the current value is fair_value) and reason = new_fiscal_year_figures (the figures of fiscal_year arrived and the value was recalculated from them), cyclical_peak_year, cyclical_trough_year or dilution_new_shares (that adjustment started to apply on this date), calculation_update (an updated calculation went live for all stocks on this date, nothing happened at the company itself), adjustment_no_longer_applies (an adjustment on top of the model blend no longer applies to this stock: it had lifted the fair value when before is higher than after, lowered it when lower; the valuation models calculate as before), quality_growth_uplift_ended (the uplift for quality growth no longer applies because the company no longer meets its conditions, the fair value is the value of the models alone), quality_growth_uplift_started (the uplift for quality growth now applies because the company meets its conditions, the fair value is above the value of the models alone), quality_growth_uplift_capped_at_price (the uplift for quality growth now applies at the current price: the fair value is at most 10 percent above that price) or not_recorded (no cause is on record)), fair_value_basis (present with the value estimate when none of the valuation models carries for the company, usually because of losses or heavy investment: the fair value is then an estimate drawn from revenue and assets compared with similar companies, less precise than a model-based fair value; valuation_status is then near_fair_value or overvalued, and fair_value_last_change is not given), fair_value_caution (present when the website shows the fair value with a caution badge: capped = the valuation models arrive at a very high value, the fair value shown is deliberately capped lower; extreme_value = the fair value sits far below the price, outside the range where the models are reliable, usually because the price expects much more than profits and cash flow show today or the latest figures are unusually weak), depositary_receipt (present when the listing is a US depositary receipt (ADR): its price and fair value are per receipt, not per original share, so the price can differ from the share price at the home exchange; original_shares_per_unit = how many original shares one receipt represents, present only where a source documents it; note = the sentence the website shows for it). The values are calculated by Fair Value Calculator from its own models and cannot be derived from the other fields; deep_link opens the full analysis page with the fair value history chart and every valuation model. This is a valuation, not financial advice.

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": {
      "symbols": "<symbols>"
    },
    "name": "compare_stocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolsYesUp to 5 symbols, e.g. ["AAPL.US","MSFT.US"].
request_idNoOptional: stable id for this call; a retry with the same id is not counted twice.
analysis_session_idNoOptional: reuse the same id for all tool calls that answer ONE user question, so they count once against the daily limit. Exception: for free accounts every different stock in get_stock_verdict counts once a day, whatever id is sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / analysis_session_id / description
      Previous value: -"Optional: reuse the same id for all tool calls that answer ONE user question, so they count once against the daily limit."New value: +"Optional: reuse the same id for all tool calls that answer ONE user question, so they count once against the daily limit. Exception: for free accounts every different stock in get_stock_verdict counts once a day, whatever id is sent."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

The annotations already declare read-only, idempotent, non-destructive behavior, but the description adds substantial context: free versus Pro limits, not_compared behavior, daily counting via analysis_session_id, provenance from Fair Value Calculator models, and detailed caveats such as depositary receipts and fair value adjustments. There is no contradiction with the annotations.

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

Conciseness3/5

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

The purpose and usage guidance are front-loaded, but the description then becomes a very long single-paragraph field enumeration. Much of the detail is justified because there is no output schema, yet the density and lack of visual structure make it harder to scan than it needs to be.

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?

Given the absence of an output schema and the many returned valuation fields, the description is thorough: it explains field meanings, limits, model provenance, adjustment cases, and caution conditions. It gives the agent enough context to call the tool and interpret its results correctly.

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%, so the schema already documents symbols, request_id, and analysis_session_id. The description adds only the max-five comparison context, which is already represented in the schema, and does not add meaning beyond the schema for the request/session parameters.

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 states a specific action: compare up to five named stocks side by side using Fair Value Calculator values. It also scopes the tool to “which is better valued” questions about named stocks, which distinguishes it from broader screening use.

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

Usage Guidelines4/5

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

It explicitly says to use the tool for “which is better valued” questions about named stocks. However, it does not name alternative tools, specify when not to use it, or give explicit exclusions beyond the named-stock focus.

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.