export_report
Direct the user to download a report file (CSV, PDF, or XML) from the web app's Reports page. This covers tax reports (capital gains, income, IRS forms, transactions) AND portfolio/holdings reports (inventory with per-currency balance/cost/market value, cost basis by account, balance variation, start-of-year holdings).
Report files are generated and downloaded in the web app, not delivered through MCP. Use this tool whenever a user asks to export, download, or save a report file — including holdings, portfolio, or balance exports — and give them the returned link. Choose inventory when the user asks generically for a portfolio or holdings data export.
For supported tax report figures, use get_tax_report. For current holdings and portfolio values, use get_portfolio. File-only report figures remain in this download flow.
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": {
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "export_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Format for a pack selection (packType). Omit when using `reports` — those carry their own per-report format. | |
| toDate | No | End of the report period, ISO 8601 (e.g. '2025-06-30'). | |
| context | Yes | Write one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details". | |
| reports | No | Individual reports to download, each with its own format — you can mix formats in one call (e.g. capital-gains as csv and irs-8949 as pdf). Use EITHER this OR packType, never both. | |
| fromDate | No | Start of the report period, ISO 8601 (e.g. '2024-07-01'). | |
| packType | No | A named report pack (e.g. 'Self', 'Accountant', 'MyGov', 'IRS8949', 'TurboTax'). Offer a pack when the user asks loosely ('reports for my accountant' → Accountant). Use EITHER this OR reports, never both. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess. | |
| financialYear | No | End calendar year of a standard financial year, taken from a get_filter_options preset's `year`. Include it whenever the period is a standard FY so IRS reports surface; omit only for an explicit custom range. |