Search documents
search-documentsSearch across documents. Keyword (BM25) by default; set semantic=true to add KNN. Covers SEC filing narratives, user-uploaded documents (policies, procedures, notes), and any other indexed content.
WHEN TO USE:
To find accounting policies, close procedures, or reference documents
To search SEC filing narratives (MD&A, risk factors, disclosures)
To discover any document content by topic or keyword
For cross-company topic search on shared repositories (e.g., "which companies mention tariff risk?")
PARAMETERS:
query(required) — the search textsemantic— adds KNN to the BM25 pass; defaults to false, so a plain call is keyword-onlyentity,form_type,section,element,fiscal_year,size— filterssnippet_chars— approximate snippet budget per hit (default 400, max 1500); raise it when the snippets are too short to choose between hits
RELATED TOOLS:
get-document-section / get-document — read what a hit points at
search-text — once you know the filing, search INSIDE its whole text (cover page, footnotes, anything between the indexed sections); pass a hit's accession_number as
accessionwith its entity_ticker (a CIK for a filer with no ticker)read-graph-cypher — structured data (numbers, relationships), not prose
list-documents — browses by metadata; does not search content
resolve-element — takes a qname from get-document-section's xbrl_elements on to its structured values
RETURNS:
Ranked hits, each with document_id, score, source_type, section_label, section_id, snippet, content_length and content_url (element_qname for an iXBRL disclosure)
Filing fields every hit shares (entity_ticker, entity_name, form_type, filing_date, fiscal_year, accession_number) appear once at the result root; when the hits span filings they stay on each hit
The same section from a filer's successive filings comes back once, as its best-ranked (then newest) filing;
also_in_filingscounts the other filings folded into it. Withentityset nothing is folded, so pass a ticker or CIK to see one filer's filings of a section side by sidetotalcounts matching documents before any folding (OpenSearch stops counting at 10,000), not the distinct results a page can showA snippet is an excerpt around the match, not the passage — read the section with get-document-section before quoting a figure from it
A long section (an MD&A, a commitments note) is indexed in parts of about 25K characters; a hit carries part / part_count and the parts share a parent_document_id. get-document-section returns one part and its next_document_id
For user docs, use get-document to retrieve the complete document
NOTES:
Searches user-uploaded documents (created via create-document), SEC filing text blocks and narrative sections, and iXBRL disclosure sections
To tie narrative back to reported numbers: get-document-section returns an iXBRL disclosure's xbrl_elements (e.g. us-gaap:Goodwill); look one up with resolve-element, then read-graph-cypher for its structured values. Note resolve-element is only published on graphs with semantic enrichment
Natural language queries work well ("depreciation policy", "month end close procedures")
Use entity filter to focus on one company's filings. Only a CIK selects exactly one filer. A company name is a loose word match that takes in other filers sharing a word ("Acme Holdings" also matches every filer with "Holdings" in its name), and so is a ticker that is also a word ("ON" also matches filers with "On" in their names) — pass the CIK when it matters
Use section filter (item_1a, item_7) to target specific filing sections, or an element qname (us-gaap:CommitmentsAndContingenciesDisclosureTextBlock) to target one iXBRL disclosure across filings; the
elementfilter finds the disclosures that contain a given fact
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": {
"query": "<query>"
},
"name": "search-documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Max results (default 10, max 50) | |
| query | Yes | Search query (e.g., 'tariff exposure supply chain risk') | |
| entity | No | Optional: filter by CIK (exactly one filer), ticker, or company name. A name, or a ticker that is also a word, is a loose word match that can include other filers | |
| element | No | Optional: filter by XBRL element qname to find disclosures containing that fact (e.g., us-gaap:Goodwill, us-gaap:Revenues) | |
| section | No | Optional: filter by section ID — an Item (item_1, item_1a, item_1c, item_2, item_7, item_7a) or an iXBRL disclosure's element qname (us-gaap:GoodwillDisclosureTextBlock) | |
| semantic | No | Enable hybrid semantic search (BM25 + KNN vector similarity). Default is BM25-only which is faster. Use semantic=true for meaning-based search when keyword matching is insufficient. | |
| form_type | No | Optional: filter by form type (10-K, 10-Q) | |
| fiscal_year | No | Optional: filter by fiscal year | |
| snippet_chars | No | Approximate snippet budget per hit in characters (default 400, max 1500) |