Skip to main content
Glama

Kaleidoscope MCP (SEC & financial data)

Earnings Surprise History (Foster SUE + post-earnings drift base-rate per ticker)

earnings_surprise_history
Read-onlyIdempotent

For one ticker: its earnings-surprise track record (Foster SUE per quarter) and its post-earnings-drift base-rate — does it tend to beat (vs its OWN history), how big is the latest surprise, how does the stock behave in the weeks after it reports. Pairs with upcoming_earnings ('who reports → what to expect').

CRITICAL labels (worth reinforcing in any prompt):

  • Surprise is OWN-history SUE, NOT vs-Street consensus. EPS minus same-fiscal-period-prior-year EPS, scaled by trailing 8q stdev. Standard academic PEAD measure when no analyst estimates are available. Never say 'beat consensus' — say 'beat its own seasonal trend' or 'positive SUE.'

  • Both abnormal AND raw drift returned, labelled. abn_drift_41_bps is the alpha read (vs IWM beta); raw_drift_41_bps is what a long-only earns (beta-dominated). Don't conflate.

  • is_restated carried per row. PIT-validated drift signal SURVIVES dropping every restated surprise-quarter (+88bps full-universe, monotonic; survivors-only was +105bps — delisted names show no drift). Callercan exclude/flag if needed.

  • report_date and drift fields are DECOUPLED. report_date is set whenever the earnings 2.02 is matched (~79% of cik-quarters carry it). Drift fields (announce_return_bps, abn_drift_*, raw_drift_*) are populated only AFTER the +41-trading-day window elapses. So a JUST-REPORTED quarter reads report_date SET + drift NULL = 'reported, drift in progress' — NOT 'no earnings event.' Distinguish from non-filer (both NULL = no 2.02). True drift misses on settled quarters are ~1%; the rest of the 21% null are genuine non-filers reporting via 10-Q only.

  • cadence per row ('quarterly' or 'annual', new 2026-06-14). Foreign private issuers (20-F filers — ICLR, ASML, BABA, …) carry annual SUE (fiscal_period='FY'); domestic 10-K/10-Q filers carry quarterly. Never compare an annual SUE to a quarterly SUE as if same-cadence — present the summary's cadence_mix block and frame accordingly. SUE itself is currency-INVARIANT (own-history Δ/σ; the unit cancels) so SUE is comparable across currencies, but eps/revenue are in reporting_currency (ICLR USD, ASML EUR, BABA CNY).

  • Annual-cadence rows have report_date + ALL drift fields NULL by design. 20-F filers file no 8-K Item 2.02 so there's no announcement to anchor drift on. 'Annual SUE, no drift' is the correct, expected state for foreign filers — NOT a data gap. Coverage: us-gaap 20-F live; still empty: ifrs-full-only names (HAFN, BN — pending xbrl's IFRS extractor) and 6-K quarterly interims (futures v2 funnel).

  • Per-quarter drift is NULL'd for fiscal/calendar-collision names (since 2026-06-12; previously the adjacent quarter's value). Drift events are keyed by calendar quarter; when two fiscal reports collide in one calendar quarter (e.g. KMX Feb-FYE — fiscal-Q4 in April + fiscal-Q1 in June, both calendar-Q2), the orphaned fiscal quarter's drift fields read NULL. Treat NULL as 'drift not available for this quarter,' NOT zero. ~2.6% of quarters affected. The aggregate SUE→drift signal (+88bps full-universe) and sue/revenue_sue/beat/report_date are all correct — re-anchoring on the 2.02-per-fiscal-quarter was tested and rejected (it would have degraded the aggregate meaningfully; the calendar anchor sometimes catches the guidance pre-announcement, which is closer to where drift actually begins).

Rows are found by the CURRENT ticker (META returns every quarter, including the FB years); each row's era_ticker is the symbol traded at that quarter's end_date, and former_tickers lists the earlier symbols.

Returns N most recent quarters for the ticker (default 12, max 80) + a summary block: beat_rate, drift_after_pos_sue, drift_after_neg_sue, latest_sue, latest_eps, sue_trend (slope of recent SUEs), data_quality.confidence, cadence_mix (count of quarterly vs annual rows returned), and reporting_currency (the row's native currency for eps/revenue).

Verified on CROX: beat_rate 0.63, drift after +SUE +249bps vs after −SUE +67bps, n=57 — the name-level PEAD pattern consistent with the cross-section.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "earnings_surprise_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
cikNoSEC CIK instead of ticker. Use it for delisted / acquired companies: their rows carry no ticker, only the CIK (era_ticker on each row shows the symbol it traded under then).
as_ofNoYYYY-MM-DD cutoff (default today). Filters quarters TWO ways for PIT replay (per SURPRISE_HISTORY_INTEGRATION.md §6a 2026-06-12): (1) end_date <= as_of AND (report_date IS NULL OR report_date <= as_of) — drops fiscal quarters that hadn't been reported by as_of. (2) Drift fields are NULLED when their window hadn't closed by as_of (announce_return_bps needs +3 days post-report; abn_drift_21_bps needs +31 days; abn_drift_41_bps + raw_drift_41_bps need +60 days — calendar-day approximation, ±1-2d boundary slop is the explicit tradeoff vs needing a market calendar). Summary block (beat_rate / drift base-rates / latest) recomputes over the surviving rows. Recommend exclude_restated=true for clean replay — a stored EPS may be a later restatement; dropping is_restated=true rows removes that lookahead. Response echoes as_of_effective.
tickerNoStock ticker (e.g. 'CROX', 'NVDA'). Each ticker maps to one company (its current holder).
n_quartersNoQuarters of history to return, most recent first. Default 12 (≈3 years). Max 80 (covers full history for nearly every covered name — CROX at 57 quarters is one of the longest). Pass a larger value for backtest-style rollups; the summary block is more stable with more history.
exclude_restatedNoIf true, omit quarters where is_restated=true from BOTH the row list AND the summary rollup. The PIT-honest variant. Default false (return everything + flag per row).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description still adds substantial behavioral context beyond them: DECOUPLED report_date vs drift fields with the explicit 'reported, drift in progress' vs non-filer distinction, per-row cadence, restatement flagging with PIT evidence, and NULL semantics for fiscal/calendar collisions ('treat NULL as drift not available, NOT zero'). This is exactly the kind of return-state disclosure annotations cannot carry.

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

Conciseness2/5

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

The content is valuable but the delivery is a wall of dense prose and bullets carrying internal implementation artifacts — doc filenames (SURPRISE_HISTORY_INTEGRATION.md §6a), change dates (2026-06-12, 2026-06-14), rejected-design rationale, and CROX validation statistics — that do not help an agent select or invoke the tool. Key selection-relevant facts (null semantics, cadence) are buried mid-document rather than front-loaded.

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 multi-parameter analytical tool with no output schema, the description covers return shape (row list plus summary block with named fields), currency and cadence caveats, known coverage gaps (IFRS-only names, 6-K interims), and rare-but-real null cases. An agent has everything needed to call it and to interpret the response correctly.

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, but the description adds genuine meaning beyond the schema: that the summary block stabilizes with more history, that 80 covers full history for nearly every name (CROX at 57 is unusually long), and the PIT rationale for exclude_restated affecting both rows and the rollup. It does partly restate defaults already in the schema, which keeps it off a 5.

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 first sentence names a specific verb+resource+scope: per-ticker earnings-surprise track record (Foster SUE per quarter) plus a post-earnings-drift base-rate. It also positions itself against the sibling upcoming_earnings ('who reports → what to expect'), so an agent can distinguish the retrospective base-rate tool from the forward calendar tool without opening either schema.

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?

States a clear workflow pairing with upcoming_earnings and gives conditional guidance for parameters (use cik for delisted/acquired names, exclude_restated for PIT-clean replay, larger n_quarters for backtest rollups). It never states an explicit when-not-to-use or names a contrasting alternative for the SUE-vs-consensus reading, so it stops short of a 5.

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