Skip to main content
Glama

Analyze a stock

analyze_stock

Run a FRESH InvestIQ analysis of one stock/ETF with the deterministic scoring engine — conviction score 0-100, the 5 cluster scores, Piotroski/Altman, DCF upside (or why it is missing) and a bear/base/bull DCF range, next-earnings countdown, one-off earnings quarters set apart, what moved the score since the previous analysis, top bull/bear facts, the market session, when the score and price were taken and each datum's source. COSTS 1 analysis credit for a signed-in user (only when it succeeds; the result says how many are left). If get_stock_analysis shows an analysis under a day old, that one is free. For several tickers at once use compare_stocks. Example: "analyse NVDA".

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": {
      "ticker": "<ticker>"
    },
    "name": "analyze_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYesSymbol, e.g. NVDA, AAPL, MC.PA

Output Schema

NameRequiredDescriptionDefault
okYesfalse on an error; then `error` says what happened and what to do.
cardNoThe in-chat InvestIQ card, in English and French.
dataNoThe tool's own result fields.
toolYes
as_ofYesISO time the data was computed (a stored analysis: when it was computed).
errorNo
linksNoInvestIQ pages for this result.
degradedNotrue when part of the data was missing.
viz_specNoThe recommended chart's series (data only).
disclaimerYes
data_qualityNoWhat was requested, what was used, and why anything was left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, idempotentHint=false and destructiveHint=false; the description goes well beyond by disclosing the credit cost (1 credit), that billing only occurs on success, that remaining credits are returned, and that repeated calls are fresh rather than cached. That fills the non-idempotent, mutating-by-cost profile the annotations only hint at.

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 action and cost, and every sentence carries distinct information. The opening sentence is a long comma-chained list of outputs that partially duplicates the existing output schema, which is the one place wording could be trimmed.

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?

Covers what an agent needs before calling: cost and billing condition, freshness/free alternative, batch alternative, ticker format, and a usage example. Since an output schema exists, the output enumeration is redundant rather than necessary, but nothing required is missing.

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

Parameters5/5

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

There is a single required parameter at 100% schema coverage, so the baseline is 3; the description adds meaning by scoping the argument to 'one stock/ETF' (ETF is not stated in the schema) and giving a concrete example ticker alongside the schema's own symbols. Marginal but genuine added semantics for an otherwise trivial argument.

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?

States a specific verb and resource ('Run a FRESH InvestIQ analysis of one stock/ETF') with a deterministic scoring engine, then enumerates the concrete outputs (conviction score, cluster scores, Piotroski/Altman, DCF range, earnings countdown, deltas). The word 'FRESH' plus the pointer to get_stock_analysis clearly separates it from the cached-read sibling and from compare_stocks for batch work.

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?

Explicit routing rules: use get_stock_analysis when an analysis under a day old exists because that one is free, and use compare_stocks for several tickers at once. It even supplies a sample invocation ('analyse NVDA'), so an agent knows both when to select this tool and when to defer.

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.

Resources