Skip to main content
Glama

EdgarStack

Analyze earnings quality and unusual changes

analyze_earnings_quality
Read-onlyIdempotent

Two screening views on a company's SEC XBRL numbers:

  • view="indicators" (default): accruals, cash conversion, working-capital days trends, and revenue versus receivables growth, with the thresholds and methodology used.

  • view="anomalies": flags the latest annual or reported-quarterly growth in up to 8 metrics (default revenue, operatingIncome, netIncome, operatingCashFlow, capex) when it falls outside the company's own history. A review signal requires at least four earlier comparable growth observations and a latest value beyond the historical 1.5× IQR fence by at least 10 percentage points; limit 6–10 observations per metric, default 8. Unavailable values are null. Results are indicators and prompts to review the source filings, not findings or verdicts; they can be affected by industry, seasonality, acquisitions, factoring, and reporting changes. Not financial advice.

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

Input Schema

NameRequiredDescriptionDefault
viewNoindicators
limitNoview=anomalies only: observations per metric; at least six are needed for a baseline
periodNoview=anomalies only: annual 10-K values or reported quarterly 10-Q valuesannual
tickerYesUS ticker symbol
metricsNoview=anomalies only: one to eight metrics; omit for the defaults

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / metrics / items / enum
      Previous value: -[
      -  "revenue",
      -  "grossProfit",
      -  "operatingIncome",
      -  "netIncome",
      -  "epsBasic",
      -  "epsDiluted",
      -  "totalAssets",
      -  "currentAssets",
      -  "totalLiabilities",
      -  "currentLiabilities",
      -  "longTermDebt",
      -  "totalEquity",
      -  "cashAndEquivalents",
      -  "operatingCashFlow",
      -  "capex",
      -  "rdExpense",
      -  "sharesOutstanding",
      -  "dividendsPerShare",
      -  "dividendsPaid",
      -  "stockBasedCompensation",
      -  "deferredRevenue",
      -  "goodwill",
      -  "intangibleAssets",
      -  "depreciationAmortization",
      -  "costOfGoodsSold",
      -  "sellingGeneralAndAdministrative",
      -  "interestExpense",
      -  "otherNonoperatingIncomeExpense",
      -  "pretaxIncome",
      -  "incomeTaxExpense",
      -  "liabilitiesAndEquity",
      -  "assetImpairment",
      -  "shortTermInvestments",
      -  "weightedAverageDilutedShares",
      -  "shareRepurchases",
      -  "accountsReceivable",
      -  "inventory",
      -  "accountsPayable",
      -  "propertyPlantEquipment",
      -  "investingCashFlow",
      -  "financingCashFlow",
      -  "grossInterestIncome",
      -  "netInterestIncome",
      -  "noninterestIncome"
      -]New value: +[
      +  "revenue",
      +  "grossProfit",
      +  "operatingIncome",
      +  "netIncome",
      +  "epsBasic",
      +  "epsDiluted",
      +  "totalAssets",
      +  "currentAssets",
      +  "totalLiabilities",
      +  "currentLiabilities",
      +  "longTermDebt",
      +  "totalEquity",
      +  "cashAndEquivalents",
      +  "operatingCashFlow",
      +  "capex",
      +  "rdExpense",
      +  "sharesOutstanding",
      +  "dividendsPerShare",
      +  "dividendsPaid",
      +  "stockBasedCompensation",
      +  "deferredRevenue",
      +  "goodwill",
      +  "intangibleAssets",
      +  "depreciationAmortization",
      +  "costOfGoodsSold",
      +  "sellingGeneralAndAdministrative",
      +  "interestExpense",
      +  "otherNonoperatingIncomeExpense",
      +  "pretaxIncome",
      +  "incomeTaxExpense",
      +  "liabilitiesAndEquity",
      +  "assetImpairment",
      +  "shortTermInvestments",
      +  "weightedAverageDilutedShares",
      +  "shareRepurchases",
      +  "accountsReceivable",
      +  "inventory",
      +  "accountsPayable",
      +  "propertyPlantEquipment",
      +  "investingCashFlow",
      +  "financingCashFlow",
      +  "grossInterestIncome",
      +  "netInterestIncome",
      +  "noninterestIncome",
      +  "currentDebt",
      +  "debtIssued",
      +  "debtRepaid",
      +  "weightedAverageBasicShares",
      +  "otherCurrentAssets",
      +  "otherCurrentLiabilities"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the anomaly methodology (minimum of four prior growth observations, 1.5× IQR fence plus 10 percentage-point margin), the 6–10 observation bound, null handling for unavailable values, and confounding factors like acquisitions, factoring, and reporting changes. It also frames outputs as review prompts rather than verdicts, which is behaviorally important framing not present in annotations.

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 summary line followed by two scannable bullets keyed to the enum values, then a caveat paragraph. The anomaly bullet is dense with numeric thresholds but every clause is load-bearing; only the trailing disclaimer could be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does the work of stating return shape: indicator categories for the indicators view, per-metric flags plus missing-observation conditions for anomalies, and nulls for unavailable values. What it omits is the concrete output field structure (e.g., how flagged metrics are labeled or whether the thresholds are returned per metric), which leaves a small gap for a five-parameter analytical tool.

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?

With 80% schema coverage the baseline is 3; the description adds real meaning by listing the default metric set (revenue, operatingIncome, netIncome, operatingCashFlow, capex), tying limit to the 6–10 baseline requirement, and noting that period, limit, and metrics apply only to view=anomalies. It stops short of explaining individual ticker handling or what happens if a requested metric is missing for a company.

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 opening line names the resource (SEC XBRL numbers) and the operation (two screening views), and the bullets spell out exactly what each view computes — accrual/cash-conversion indicators versus historical IQR-fence anomaly flags. An agent can distinguish this from siblings like compute_ratios or get_financials without opening the 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?

It clearly states the default view and what each view is for, so the agent knows which enum value to pick. It does not, however, say when to reach for this instead of nearby analytics tools such as compute_ratios or assess_financial_data_quality, leaving sibling routing implicit.

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