Skip to main content
Glama

Get KPI history

get_kpis
Read-onlyIdempotent

Quarterly KPI history calculated from SEC XBRL filings, newest first, in USD: revenue, gross_profit, operating_income, net_income, eps_diluted, operating_cash_flow, capex, free_cash_flow, rd_expense, gross_margin, operating_margin, net_margin (margins in percent, EPS in USD per share). Only SEC filers have it; for other companies use get_quarter. limit is the number of quarters (1-16, default 16).

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_kpis"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of quarters, 1-16, default 16
metricNoOne metric, or omit for all
tickerYesTicker or company name, such as NVDA, Nvidia, BCS or Barclays

Output Schema

NameRequiredDescriptionDefault
nameYes
noteYes
tickerYes
currencyYes
quartersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / limit / description
      Added value: +"Number of quarters, 1-16, default 16"
    • changedInput schema / properties / metric / description
      Previous value: -"One metric name, or omit for all"New value: +"One metric, or omit for all"
    • addedInput schema / properties / metric / enum
      Added value: +[
      +  "revenue",
      +  "gross_profit",
      +  "operating_income",
      +  "net_income",
      +  "eps_diluted",
      +  "operating_cash_flow",
      +  "capex",
      +  "free_cash_flow",
      +  "rd_expense",
      +  "gross_margin",
      +  "operating_margin",
      +  "net_margin"
      +]
    • changedInput schema / properties / ticker / description
      Previous value: -"Stock ticker, such as NVDA"New value: +"Ticker or company name, such as NVDA, Nvidia, BCS or Barclays"
    • changedInput schema / properties / ticker / maxLength
      Previous value: -8New value: +80
    • addedOutput schema / properties / currency
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / name
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ticker",
      -  "quarters",
      -  "note"
      -]New value: +[
      +  "ticker",
      +  "name",
      +  "currency",
      +  "quarters",
      +  "note"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description adds real context beyond them: data provenance (SEC XBRL), newest-first ordering, USD currency, and per-metric units (margins in percent, EPS per share) that prevent misinterpreting margin values as fractions.

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 what the tool returns, then constraints, then fallback routing — all in two sentences with no filler. The long metric list partially duplicates the enum, though it earns its place by attaching unit semantics.

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 an output schema present and full annotation coverage, the description supplies everything else an agent needs: source, currency, ordering, metric units, coverage boundary, and pagination-equivalent limit semantics. Nothing required to call it correctly is missing.

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 baseline is 3. The description goes beyond the schema by clarifying units for the metric enum (margins in percent, EPS in USD/share), which is decision-relevant meaning the enum alone doesn't convey; the limit explanation merely restates the schema.

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 ('Quarterly KPI history'), the source ('calculated from SEC XBRL filings'), ordering ('newest first'), unit ('in USD'), and enumerates the exact metric set returned. An agent can distinguish this from get_quarter purely from the description.

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?

Explicitly scopes usage with 'Only SEC filers have it; for other companies use get_quarter', which names the alternative and the condition selecting it. It does not explain when an agent should prefer get_quarter beyond the filer-type fallback (e.g., non-quarterly or detail needs), so it stops short of full when/when-not guidance.

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