Retrieve the full text of a Daloopa-indexed financial document.
Access to a document is gated on the company it belongs to: the tool resolves that company from the document and runs the same access-control and subscription flow as get_company_fundamentals. When access is denied (e.g. the user's company subscription limit is reached), a plain-text message is returned and no document content is provided; relay that message to the user verbatim.
Returns one of three shapes depending on what the document needs:
1. content payload (whole document or a single section, when the document is small enough or the caller passed a valid section for a large filing):
{ "title": "...", "filing_type": "10-K", "document_type": "10-K", "content": "...", "section_returned": null | "Item 1A. Risk Factors", "truncated": false, "url": "https://marketplace.daloopa.com/document/{document_id}", }
`content is capped on the server side and never exceeds MCP_SECTION_MAX_CHARACTERS characters. truncated is true when the cap was hit; ask for a specific section to get less text in one call. document_type is the source classification carried alongside filing_type and is useful for disambiguating broad buckets such as "Others" (for example an Earnings Presentation or Investor Day Presentation).
2. section required (when the document is a large 10-K or 10-Q and the caller did not pass a section, or passed a section that is not in available_sections):
{ "instruction": "This document is too large ...", "title": "...", "filing_type": "10-K", "document_type": "10-K", "total_characters": 250000, "total_sections": 16, "available_sections": [{"name": "...", "characters": 12345}, ...], "url": "https://marketplace.daloopa.com/document/{document_id}", }
On a section-required response you MUST present the full available_sections list to the user (each entry's name and characters count) and ask the user which section to pull. Do NOT auto-pick a section. Once the user chooses one, call get_document_content again with that section` argument.
3. refusal (when content retrieval is not supported for this document, e.g. filing types outside the allowlist):
{ "error": "Document not supported for content retrieval", "filing_type": "20-F", "document_type": "20-F", "reason": "Filing type '20-F' is not supported ...", "url": "https://marketplace.daloopa.com/document/{document_id}", }