Skip to main content
Glama

filing-integrity-check

SEC Filing Integrity Check: XBRL Footing, Tie-Outs, Revisions — Before a figure from a US 10-K or 10-Q is quoted, re-checks it with exact integer arithmetic on SEC XBRL data: balance sheet identity (including noncontrolling and temporary equity), net income bridge, cash flow to balance sheet cash tie-out with restricted cash and roll-forward, EPS recomputation, every calculation-linkbase relationship the filing declares, and same-period values that a later 10-

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": "filing-integrity-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
cikNoSEC CIK, digits only.
checksNoChecks to run; default all six.
periodNoFY selects the 10-K; Q1 to Q3 select 10-Qs (there is no Q4 filing).
tickerNoExchange ticker, e.g. AAPL or BRK.B. Give exactly one of ticker or cik.
accessionNoAccession number of a 10-K or 10-Q, e.g. 0000320193-25-000079. Give this or fiscal_year with period.
fiscal_yearNoFiscal year of the filing's DocumentFiscalYearFocus.
rounding_modeNoexact: any nonzero difference fails. reported_precision (default): differences within half a unit of the filing's reporting scale per rounded figure pass and are flagged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden. It usefully discloses the mechanism ('exact integer arithmetic') and that it re-derives values rather than trusting reported ones, but it never states that it is a read-only, non-mutating check, says nothing about data availability for older filings, runtime, or how failures surface. The final clause is also cut off mid-word ('a later 10-'), leaving the revision behavior undisclosed.

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

Conciseness3/5

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

Front-loading is good: label, then the trigger condition, then the check inventory. However, the check list is a dense run-on enumeration inside a single sentence and the text terminates abruptly mid-word, which is a genuine structural defect rather than intentional brevity.

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

Completeness3/5

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

Seven parameters, no output schema, and no annotations mean the description must also convey what an agent gets back and how failures are reported; it does not. Combined with the truncated ending, an agent knows what is verified but not what the result looks like, leaving the definition adequate rather than complete for a verification tool of this complexity.

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 description coverage is 100%, so every parameter including the ticker/cik and accession/fiscal_year+period alternatives is already documented. The description corroborates the check set and filing-type scope but adds no new usage rules for the inputs, so the baseline 3 applies.

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 ('re-checks' a quoted figure 'on SEC XBRL data') and then enumerates the concrete checks: balance sheet identity with NCI and temporary equity, net income bridge, cash flow tie-out with restricted cash and roll-forward, EPS recomputation, calculation-linkbase relationships, and restatement scan. An agent can tell exactly what this tool does and on which filing types (10-K, 10-Q).

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?

The opening clause 'Before a figure from a US 10-K or 10-Q is quoted' gives a crisp, explicit trigger condition for invoking the tool. It stops short of naming when-not-to-use cases or an alternative sibling, but the pre-publication verification context is clear enough to act on.

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