Tools reference · v1 read-only
TradeJournal MCP Tools Reference
Every MCP and on-site agent call uses the same nine tools below. Always start with get_runtime_context—then query trades, stats, or posts.
Quick summary
- First tool: Always
get_runtime_context(portfolios, plan, privacy). - Trades & stats:
list_trades,get_trade_stats,get_portfolio_stats. - Posts:
list_postsandget_postfor published journal posts only.
Key takeaway
TradeJournal.co MCP tools are read-only and user-scoped: call get_runtime_context first, then list_trades, get_trade_stats, get_dashboard_stats, list_portfolios, get_trade, get_post, list_posts, or get_portfolio_stats; the same definitions power the on-site AI assistant and external MCP clients.
Recommended call order
Agents should follow this sequence for reliable answers:
- get_runtime_context
- list_portfolios
- get_trade_stats
- list_trades
- get_trade
- get_dashboard_stats
- get_portfolio_stats
- list_posts
- get_post
Tool catalog (v1 read-only)
| Tool | Purpose | Parameters |
|---|---|---|
| get_runtime_context | Load user portfolios, active portfolio, and privacy rules. Call this first. | — |
| list_portfolios | List the user's portfolios (id and name). | — |
| get_trade_stats | Aggregate trade statistics for this user. | portfolio_id: integer; status: op,cl,pl |
| list_trades | List trades. position_size = /stats Cost (USD). asset=option|stock|etc. For 'option trades' do NOT filter status=cl only — include open and closed unless user asks for open/closed only. Use order_by=position_size_desc for largest cost. | portfolio_id: integer; symbol: string; status: op,cl,pl; asset: string; limit: integer; order_by: last_entry,position_size_desc,position_size_asc |
| get_trade | Get one trade by id (must belong to this user). | trade_id*: integer |
| get_dashboard_stats | High-level public/private trade and post counts and profit. | — |
| get_portfolio_stats | Stats for one portfolio owned by this user. | portfolio_id*: integer |
| list_posts | List the user's published posts. | limit: integer |
| get_post | Get one published post by id. | post_id*: integer |
Source of truth: mcp_services.tools (same as on-site agent).
Security guarantees ·
MCP hub ·
MCP spec.
Frequently asked questions
Start free trial — claim onboarding
Import trades, then ask real questions about your data.