Report Template
tt_report_templateRun a ready-made report over the user's own trading data and render it in the chat. Four templates, each answering a question that tt_portfolio_report (a ranked snapshot) and tt_strategy_performance (one strategy) do not:
"monthly" — month-by-month P&L across the whole book, with a running total, best/worst month, positive-month count. For "how has my year gone?", "show me my monthly P&L".
"by_underlying" — which instruments the money actually comes from, ranked, with each one's share. For "which stocks make me money?", "where am I losing?".
"execution" — average slippage with the worst fills listed, plus how many legs carry a broker execution record (Live Offline legs never do). Partial fills are NOT detectable from this feed. For "is slippage hurting me?".
"paper_vs_live" — the book split by mode, Live Offline beside live (not comparable on performance: Live Offline fills at LTP). For "how do my Live Offline and live results differ?".
Prefer these over tt_export_reports whenever the user is asking a QUESTION — this answers it in the conversation; the export just hands them a zip they have to open themselves.
Args: template: one of monthly | by_underlying | execution | paper_vs_live. from_date: YYYY-MM-DD. to_date: YYYY-MM-DD.
Follow the returned render_spec — it says how to lay the report out
and, importantly, keeps the interpretation DESCRIPTIVE. Never turn these
numbers into "stop this strategy" or "put more into that one": this is
live money and that is investment advice. Describe what the data shows
and let the user decide.
Always relay omissions (parts of the book not covered) and any
method_caveat — a breakdown that quietly covers half the book reads as
complete and is worse than none.
AUTH-REQUIRED: returns the connect funnel when no account is connected.
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": {
"template": "<template>",
"from_date": "<from_date>",
"to_date": "<to_date>"
},
"name": "tt_report_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | Yes | YYYY-MM-DD. | |
| template | Yes | One of: monthly, by_underlying, execution, paper_vs_live. Matched case-insensitively. | |
| from_date | Yes | YYYY-MM-DD. |