get_portfolio_breakdown
Break down your Magic: The Gathering collection value by set, rarity, type, color identity, or cost basis, showing value, count, and share for each slice.
Instructions
Get the user's collection value broken down by a dimension into slices (each with value, count, and share). Premium-gated. Use get_portfolio_breakdown_cards to drill into one slice. Requires IWMM_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | Dimension to break down by. 'cost-basis' buckets are gain/loss/at-cost; 'color' groups by color identity. | |
| colors | No | Only for by=color: comma-separated identity codes (W,U,B,R,G,C; C is colorless) to keep only cards whose color identity contains all of them. Ignored for other dimensions. |