Skip to main content
Glama

EdgarStack

Audit SEC financial data coverage, provenance, and balance-sheet tie-out

assess_financial_data_quality
Read-onlyIdempotent

Check how far the SEC numbers for a company can be trusted and traced. Two checks:

  • check="coverage" (default): SEC XBRL coverage, stale line-item flags, filing accession provenance, and period-end alignment for up to 12 metrics (default revenue, netIncome, totalAssets, totalLiabilities, operatingCashFlow, capex). Annual, quarterly or TTM; limit 1–12, default 5.

  • check="balance_sheet": compares total assets with total liabilities plus total equity for exact matching annual or quarterly period ends, returning the arithmetic residual, source tags, filing accessions and missing components. Annual or quarterly only; limit 1–12, default 8. Missing facts remain unavailable rather than zero. Findings describe coverage and traceability; a residual is a review signal, not proof of an accounting error. 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": "assess_financial_data_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
checkNocoverage
limitNoObservations per metric (coverage default 5; balance_sheet default 8)
periodNoTTM is available for check=coverage onlyannual
tickerYesUS ticker symbol
metricsNocheck=coverage only: up to 12 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

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real behavioral context beyond them: missing facts stay unavailable rather than being zero-filled, findings describe coverage and traceability, and an arithmetic residual is a review signal rather than proof of an accounting error. It does not cover output shape or latency, but with annotations present the bar is lower.

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 a one-line purpose, then two tightly scoped bullets keyed to the check values, then caveats. Nearly every sentence carries information an agent needs; the caveat sentence is slightly dense but justifies itself by warning against treating a residual as an error.

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?

No output schema exists, and the description compensates by naming what each check returns (accessions, source tags, residual, missing components) and what the values mean. For a 5-parameter read-only analysis tool this is adequate, with only a minor gap in not stating result size or pagination behavior.

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 80%, so the schema already documents most parameters and the baseline is 3. The description does add meaning beyond it: per-check default limits (5 for coverage, 8 for balance_sheet), the enumerated default metric set, and the period restriction tied to check type. That is marginal-but-real value on top of an already well-described schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (audit/assess trust and traceability of SEC XBRL numbers) and clearly splits it into two named checks, 'coverage' and 'balance_sheet'. An agent can see this is a quality/provenance audit rather than a plain data fetch, but no sibling (e.g. get_financials, compute_ratios) is named to draw the boundary explicitly.

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?

Gives explicit when-to-use-per-check guidance: coverage aggregates up to 12 metrics with the six defaults, balance_sheet compares assets vs liabilities plus equity at matching period ends. It also states the constraint 'TTM is available for check=coverage only' and that balance_sheet is annual or quarterly only, which prevents obvious misuse. It stops short of telling the agent when to prefer a different tool entirely.

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