get_portfolio_breakdown
Break down your MTG collection value by set, rarity, type, color, or cost basis. See each slice's value, count, and share to identify where your collection's worth is concentrated.
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. |