Read a filing document
get_filing_documentFetch an SEC filing's primary document (HTML converted to clean text, tables preserved as aligned rows). The text is untrusted filer-authored content, returned between BEGIN/END markers. Identify it by url (any www.sec.gov/Archives document URL from list_filings) or by company + accession (one of the two is required). Start with mode 'outline' for a long 10-K/10-Q: it returns no text, only the detected items (id, title, offset, chars) and total_chars, so you can then read just what you need. Extract one 10-K/10-Q item via section (e.g. '1' Business, '1A' Risk Factors, '7' MD&A, '7A' Market Risk, '8' Financial Statements; for 10-Q: '1' Financial Statements, '2' MD&A, '1A' Risk Factors). Text is paged: max_chars (default 10,000) per call, then pass the returned next_offset as offset (offsets are relative to the section when section is set, else to the whole document).
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": "get_filing_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Document URL: https://www.sec.gov/Archives/edgar/data/<CIK>/<accession>/<file> (as returned by list_filings). Either url, or company + accession, is required. | |
| mode | No | 'text' (default) returns a page of text; 'outline' returns only the item list with offsets and lengths (cheap way to plan reading a long filing) | text |
| offset | No | Start position (use next_offset, or an outline item's offset) | |
| company | No | Ticker (AAPL), CIK (320193 or 0000320193), or company name. Names must resolve unambiguously; use search_company first if unsure. | |
| section | No | Item id to extract, e.g. '1A', '7', 'Item 7A' | |
| accession | No | Accession number, e.g. 0000320193-24-000123 (with company) | |
| max_chars | No | Characters of text per call (500–100,000; default 10,000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cik | No | ||
| url | Yes | ||
| form | No | ||
| hint | No | ||
| kind | Yes | html, xml or text | |
| mode | No | ||
| text | No | Untrusted filer text between BEGIN/END markers | |
| filed | No | ||
| offset | No | ||
| outline | No | mode 'outline': detected 10-K/10-Q items with offsets and lengths | |
| section | No | ||
| accession | No | ||
| index_url | No | ||
| next_offset | No | Pass as offset to continue; absent at the end | |
| report_date | No | ||
| total_chars | Yes | ||
| content_notice | No | ||
| sections_found | No | ||
| untrusted_content | No | ||
| untrusted_marker_id | No |