Skip to main content
Glama

get_earnings_history

Read-only

One company's quarterly earnings reports — EPS and revenue actual vs estimate, surprise, beat/miss, EPS YoY — newest first, with the next scheduled report on top. The direct read for "did X beat last quarter", "X's beat/miss record", "when does X report next".

FLOW: pair with get_analyst_estimates for the forward consensus, company_financials for
the statements. get_earnings_season_cohort is the cross-company view of the current
season; predict_earnings_move sizes the next reaction.

Returns {"symbol", "limit", "count", "rows", "note"}, newest first. A row is {symbol,
date, status, timing, fiscal_year, fiscal_period, period_ending, eps_actual,
eps_estimated, eps_surprise, revenue_actual, revenue_estimated, revenue_surprise,
beat_flag, eps_yoy_change}.
- status is "upcoming" (the next scheduled report: actuals and surprises are null) or
  "reported". timing is "before_open", "after_close" or null.
- eps_surprise, revenue_surprise and eps_yoy_change are FRACTIONS (0.05 = +5%), not
  percents: multiply by 100 before showing a %.
- beat_flag is "beat", "miss" or "in_line".
- EPS is the adjusted (street) figure the estimate is made on, NOT the GAAP EPS in
  company_financials. Never compare eps_actual with company_financials' EPS.

An unknown symbol returns no rows (never a 404): `note` is set only then. A 422 means a
bad symbol or limit. A 401 means the sign-in expired (your MCP client re-runs OAuth).
Requires auth (your MCP client attaches the OAuth bearer automatically). Rate-limited
100/min per user; counts toward plan quota.

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": {
      "symbol": "<symbol>"
    },
    "name": "get_earnings_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoREPORTED quarters to return (1-20, default 8). The next scheduled report, when known, is added on top, so up to limit + 1 rows come back.
symbolYesTicker, e.g. "CSCO".

Output Schema

NameRequiredDescriptionDefault
noteNoSet only when no rows came back: what an empty result can mean.
rowsYesNewest first.
countYesRows returned, including any upcoming row.
limitYesREPORTED quarters requested; the next scheduled report can add one row on top.
symbolYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint=true, the description discloses auth requirements (OAuth bearer attached by the client), rate limits (100/min per user), plan-quota consumption, and error semantics for 401/422, plus the non-obvious behavior that an unknown symbol returns zero rows rather than a 404 with a populated `note`. It also clarifies that surprise and YoY fields are fractions, not percents, preventing a 100x display error.

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 long, but front-loaded with the one-line purpose and query examples, then segmented into FLOW and Returns blocks so an agent can skim. The field-by-field roster is somewhat verbose given an output schema exists, though the unit and adjusted-EPS caveats earn their space; a couple of the schema-restated lines 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?

For a two-parameter read tool with an output schema, the definition covers everything an agent needs: what is returned and in what order, how to interpret status/timing/beat_flag, unit conventions, the adjusted-vs-GAAP distinction, error paths, and where to go for adjacent data. No material gap is left to inference.

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 coverage is 100% and the schema already documents both `symbol` and `limit`, including the maximum of 20 and the fact that the upcoming report is added on top. The description restates the newest-first ordering and the extra upcoming row but adds no new syntax or format detail beyond the schema, so the baseline 3 applies. The substantive added semantics (fraction units, adjusted vs GAAP EPS) apply to return fields, not inputs.

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 resource and scope — one company's quarterly earnings history — and enumerates exactly what it contains (EPS/revenue actual vs estimate, surprise, beat/miss, YoY) ordered newest-first with the next scheduled report on top. It also anchors the purpose with the literal questions it answers ("did X beat last quarter", "when does X report next"), which separates it from forward-looking and cross-company siblings.

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?

The FLOW section names explicit alternatives and the condition that selects each: get_analyst_estimates for forward consensus, company_financials for statements, get_earnings_season_cohort for the cross-company season view, predict_earnings_move for sizing the reaction. It also states when-not by warning never to compare eps_actual with company_financials' EPS, which is a real misuse trap.

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