← Back to Articles
Research Workflows Chi Song

Why do agents return wrong numbers from SEC filings? How EDGAR tables deceive agents

Filing tables look clear in a browser but become misleading when converted to text for AI agents, and how CapRelay's TSV renderer fixes it

Why your agents are giving you wrong numbers when they read financial filings: filing tables are built to look right in a browser. They become misleading the moment they are converted into text for Claude or ChatGPT.

Take Builders FirstSource's Q3 filing. Its "Sales by Product Category" table reports five different values on every row:

  • 2025 Net Sales
  • 2025 % of Net Sales
  • 2024 Net Sales
  • 2024 % of Net Sales
  • YoY % Change

The browser makes those five columns obvious. A normal HTML-to-text conversion gives the agent this:

Plain-text conversion of Builders FirstSource's Sales by Product Category table, where the year headers, column labels, and values run together on single lines so the five columns can no longer be told apart

Can you figure out what's going on? Neither can your agent!

This is a broad problem:

  • 99% of financial tables used merged rows or columns
  • 39% contained hidden cells
  • 31% used wide, multi-level headers with complex layouts

This is one of the boring but important things MCPs like CapRelay provide: accurate filing information in a format optimized for agents.

If you're having your agents do web search for financial information and wondering why the numbers are wrong, you can set up our MCP in 2 mins. The rest of this note explains what goes wrong in EDGAR tables and how CapRelay's renderer fixes it.

Executive Summary

Why do agents pull the wrong number from filings?

Filing tables often look perfectly clear in a browser. But this is a jumble of HTML, so most agent tools (including those in coding agents) first convert it to text that agents can work with. In this process, tables lose formatting, columns get confused, and numbers get put in the wrong place.

CapRelay's TSV renderer solves most of this problem by reconstructing the table's visual grid before the filing reaches the agent. It turns relationships that were implicit in HTML into explicit rows and columns.

The tab character is not the important part. The important work happens before the TSV is emitted: rebuilding the grid like a browser, cleaning it conservatively, and preserving the relationship between every header and the values underneath it.

The problem: Filing tables describes appearance better than meaning

Filing tables are noise to agents

A browser uses thousands of rows to construct how a page looks. The useful structure is buried inside thousands of presentation-oriented cells, inline styles, hidden columns, and spans.

A text extractor that walks through the cells in source order loses those visual relationships.

Scale of the problem

I sampled 2,200 SEC 8-K filings from the Q4 2025, Q1 2026, and Q2 2026 EDGAR indexes. After filtering to Item 2.02 earnings filings with financial exhibits, the sample contained 399 earnings filings from 382 issuers and 6,711 top-level tables. The primary analysis used 3,922 financial/data-like tables.

Source characteristic Financial/data-like tables Why it matters
At least one colspan or rowspan 98.5% A flat text walk can lose which headers own which columns.
At least five logical columns 60.3% One dropped or phantom position can shift several values to the wrong label.
Standalone currency or percentage tokens 88.2% A sign, currency, parenthesis, or % can be separated from its number.
Hidden cells 38.7% Some cells must disappear; others must remain as blank positions.
Wide, multi-level, span-heavy headers with split values 31.1% These require real grid reconstruction, not whitespace cleanup.
Strict residual-ambiguity signature after grid expansion 7.1% At least one column still had a duplicate or missing header path.
Looser residual-ambiguity signature 11.5% A broader group remains vulnerable to semantic misattachment.

At the filing level, 27.4% of filings had at least one strict residual-ambiguity candidate and 39.7% had at least one looser candidate.

How EDGAR tables can deceive an agent

1. A grouped header loses ownership of its columns

The AMN Healthcare earnings exhibit contains the clearest example.

Visually, the table has three columns:

March 31, 2026 | March 31, 2025 | December 31, 2025

The HTML says that March 31, spans the first two numeric columns and December 31, spans the third. Ordinary HTML-to-text extraction reduced that to:

Three Months Ended
March 31, December 31,
2026 2025 2025

The first and second 2025 no longer have an explicit parent. The agent may assign AMN's $748.225M FY2025 Q4 revenue to FY2025 Q1 and assigned the correct $689.533M FY2025 Q1 value to FY2025 Q4. Both numbers came directly from the filing. Their periods were swapped.

2. Several different dimensions are interleaved across one row

The United Parks & Resorts filing places three-month results and nine-month results side by side. Each group contains 2025, 2024, dollar change, and percentage change. The source uses blank spacer columns, repeated Change headers, and separate cells for the percentage value and % sign.

One admissions row is effectively:

3 months: 2025 | 2024 | $ change | % change || 9 months: 2025 | 2024 | $ change | % change

If a blank cell is discarded or a standalone % is treated as its own measure, every value to the right can move under the wrong comparison.

The Stifel filing has the same class of problem across current quarter, prior-year quarter, sequential quarter, and two repeated % Change groups.

3. The same visible label is reused for different measures

The Builders FirstSource filing repeats 2025 across both Net Sales and % of Net Sales, then repeats the same structure for 2024. It also repeats % Change because the numeric percentage and its display cell occupy separate positions.

An agent reading flattened text sees several adjacent 2025 and % of Net Sales labels without a guaranteed one-to-one path to each value. A value such as 22.0% can be mistaken for another period value, a change column, or a duplicated display value unless the full header hierarchy is retained.

4. One financial value is stored in several cells

EDGAR filers frequently put $, the number, a closing parenthesis, and % in separate cells.

The Gold.com filing includes rows where a percentage appears across cells like (, 0.754, and %). The Lineage filing stores a change as 2.0 in one cell and % in the next.

A generic text conversion can: - detach $ from the number; - lose the parentheses that indicate a negative value; - turn a percentage into an unscaled number; - or shift the suffix into the next column.

The resulting answer can be wrong by sign, unit, scale, or column while using only tokens that genuinely appeared in the filing.

5. Blank and hidden cells do different jobs

Some blank cells are disposable padding. Others are real placeholders that keep columns aligned. A display:none cell should not consume a position, while a visibility:hidden cell still occupies space in the browser's table grid.

The Duke Energy filing includes wide tables with reported earnings, several special-item categories, footnote-letter columns, blank separators, and more than 100 hidden cells in a single table. Keeping every source cell creates phantom columns. Dropping every blank or hidden-looking cell shifts legitimate values left.

Source-order text gives an agent no reliable way to make that distinction consistently.

6. Hierarchy is communicated through indentation and blank leading columns

Some supplemental tables have several dimensions before the first number: business unit, asset class, subcategory, accounting basis, and metric. The hierarchy may be expressed only through indentation or a value appearing in the second or third blank-looking label column.

  • Primerica's supplemental filing combines market value, amortized cost, unrealized gain/loss, percent of total, and average book yield, with asset classes nested through several leading columns.
  • The State Street earnings addendum contains tables as wide as 41 logical columns, layering business lines, quarters, and sequential and YoY changes.

When indentation and blank columns disappear, a child row can look like a new top-level metric, and a value can be attached to the wrong business unit or accounting measure.

7. Section labels and data rows are mixed together

Financial tables routinely insert rows such as Revenues:, Adjustments:, or Reconciliation of Non-GAAP Items: between the headers and numeric observations. Those rows intentionally have blank numeric cells.

The AMN reconciliation table contains several of these section rows.

If empty positions are removed row by row, the next numeric row can slide into the section label. If blanks are converted to zero, the agent can report a made-up zero observation. The row boundary and its blank cells are part of the meaning.

8. Some columns remain under-specified even after layout reconstruction

  • The OFG Bancorp filing contains Basel III tables where the same quarter header and capital amount appear in adjacent columns without a distinct leaf header explaining why both positions exist.
  • The NPK International filing similarly repeats period values in adjacent cells, sometimes with a currency symbol and sometimes without one.

A browser can draw these tables, and a grid parser can preserve every position, but the source may still lack a unique semantic name for each column.

This is the residual 7–12% problem. No renderer should silently invent missing meaning. The safest behavior is to preserve the structure and leave the ambiguity visible to the downstream agent or reviewer.

How CapRelay's TSV approach solves the problem

TSV is the final representation, but the parser does six important things before writing tabs.

1. It rebuilds the table the way a browser does

The parser expands rowspan and colspan into a rectangular grid. If March 31, covers two columns, the normalized table repeats March 31, in both positions. The relationship is no longer trapped in an HTML attribute.

For AMN, the agent receives:

    Three Months Ended  Three Months Ended  Three Months Ended
    March 31,   March 31,   December 31,
    2026    2025    2025
Revenue $1,378,361  $689,533    $748,225
Net income (loss)   $62,166 $(1,092)    $(7,696)

The three complete header paths are now visually recoverable:

Three Months Ended | March 31, 2026
Three Months Ended | March 31, 2025
Three Months Ended | December 31, 2025

That directly prevents the AMN prior-year/prior-quarter swap.

2. It knows the difference between a real repeated value and a display clone

When one HTML cell spans several columns, the parser remembers that the expanded positions came from the same source cell. - Two independent cells that both say 2025 remain distinct. - Two positions created by one display-only colspan can be collapsed when the rest of the table confirms they are scaffolding.

This avoids two opposite errors: preserving dozens of fake duplicate columns or deleting legitimate repeated periods merely because their text matches.

3. It handles hidden and blank positions according to their layout meaning

  • Cells removed from browser layout with display:none are skipped before the grid is built.
  • Cells that are merely invisible but still occupy space remain as blank positions. Empty or cloned columns are removed only when every row agrees they carry no independent content.

This keeps the whole table aligned instead of making a separate, risky left-shift decision on every row.

4. It rejoins pieces of one financial value

The parser recognizes narrow, known financial patterns: - $ + 62,166 becomes $62,166; - 12.1 + % becomes 12.1%; - $( + 62,166 + ) becomes $(62,166).

It merges the columns only when the same column pair is safe across the table. It does not concatenate arbitrary adjacent text or collapse two independently populated columns.

5. It preserves the evidence instead of guessing a schema

Header rows, section rows, captions, blank placeholders, footnotes, and data rows stay in order. Nested tables are emitted separately and referenced from the parent rather than flattened into one long cell.

The output is fenced as tsv, which tells the agent to treat tabs as stable column boundaries. The agent sees a compact table rather than raw tags and inline styling.

6. It promotes only data-like financial tables

A table needs at least two rows, two columns, and two distinct numeric source cells before it becomes TSV. Navigation, layout, and prose tables remain ordinary text.

This prevents every decorative table in an SEC exhibit from flooding the prompt with meaningless grids.

This is the filing format CapRelay's MCP gives your agents. Try CapRelay for free.