analyze_trades
Purpose: Aggregate paper trades by day / pattern / symbol. Triggers (casual questions too): "how's the week been?", "이번 주 매매 성적 어때?", "which patterns are working?", "어떤 종목이 제일 잘 벌었어?", "break down the trades", "daily P&L summary?". When to call: pattern audits, period-over-period performance review. Prerequisites: get_trade_history recommended for raw rows first. Next steps: market://{market_id}/signals/feedback for the upstream signals. Caveats: max 30 days; empty result when no trades in the window.
Args: market_id: Market ID (crypto, kr_stock, us_stock; aliases coin/kr/us accepted) days: Analysis period in days (default 7, max 30)
Disclaimer: Information only, not investment advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| market_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Set true on error responses | |
| action | No | Recommended client action (error path) | |
| reason | No | Human-readable cause (error path) | |
| full_data | No | ||
| retryable | No | Whether the client should retry (error path) | |
| timestamp | Yes | RFC3339 UTC, server build time | |
| ai_summary | No | One-line AI-oriented summary (success path) | |
| disclaimer | Yes | Canonical compliance disclaimer (always present) | |
| error_code | No | Stable error identifier; see mcp_error_policy.md | |
| request_id | Yes | 32-hex per-response correlation id | |
| _llm_summary | No | ||
| action_value | No | ||
| _next_actions | No | ||
| fallback_note | No | ||
| fallback_tool | No | Suggested fallback (error path) | |
| is_real_money | No | ||
| _value_signals | No | ||
| summary_for_user | No | One-line jargon-free Korean summary (success path) | |
| data_classification | No | ||
| is_investment_advice | No | ||
| ai_summary_ttl_seconds | No | ||
| _market_state_narrative | No | ||
| ai_summary_generated_at | No | RFC3339 UTC | |
| _followup_questions_for_user | No |