Skip to main content
Glama

Latest stored analysis

get_stock_analysis
Read-onlyIdempotent

The latest InvestIQ Stock Analysis already stored for a ticker — conviction 0-100, the 5 cluster scores, quality (Piotroski, Altman), valuation, financials (labelled with their fiscal year and currency), flags — with no credit spent and nothing recomputed (analyze_stock runs a fresh one for 1 credit). States the analysis date first; when the nightly score is more than 2 days newer, or the stored analysis is degraded, the nightly score is shown and the stored one is mentioned. Free. Example: "what's the latest InvestIQ score on AAPL?".

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

Input Schema

NameRequiredDescriptionDefault
tickerYesSymbol, e.g. NVDA, 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.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description wisely spends its space elsewhere: zero credit cost, no recomputation, the analysis date being surfaced first, and the non-obvious fallback where a nightly score more than 2 days newer (or a degraded stored analysis) is shown with the stored one merely mentioned. That fallback is behavior an agent could not predict from any structured field.

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?

It is front-loaded with the resource and its contents, then cost, then fallback behavior, then an example — a sensible ordering. The payload list is dense and the example sentence is a slight luxury, but nothing is genuinely redundant given how much behavior is being disclosed.

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?

An output schema exists, so return values need no explanation, yet the description still names the key fields an agent would reason about. Cost, freshness caveats, and the nightly-vs-stored precedence rule cover everything needed to call this correctly and interpret the result against analyze_stock.

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?

There is a single required parameter with 100% schema description coverage, so the baseline is 3. The description confirms the parameter is a ticker symbol but adds no extra semantics (no format rules, market suffixes, or case handling) beyond what the schema's NVDA / MC.PA example already conveys.

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 opens with a specific verb and resource — the latest stored InvestIQ Stock Analysis for a ticker — and enumerates exactly what is returned (conviction 0-100, five cluster scores, Piotroski/Altman quality, valuation, financials with fiscal year and currency, flags). It explicitly distinguishes itself from the sibling analyze_stock, which computes a fresh analysis.

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 states the decisive selection criterion against the alternative: this tool spends no credit and recomputes nothing, whereas analyze_stock runs a fresh one for 1 credit. It also gives a sample user utterance ("what's the latest InvestIQ score on AAPL?") that pins down the intended trigger, leaving nothing to inference.

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