Get deals
crm_get_dealsList CRM deals (RLS-scoped). DEFAULTS TO OPEN DEALS ONLY - statuses the workspace has not marked as terminal, so Won and Lost are excluded. Say so when you answer ("you have 12 open deals"), and read meta.scope_note for how many closed ones were left out. Pass scope: archived for deals that are won or lost, or all for anything measured over a period - revenue history, deals closed in the last x months, win rates. Max limit 200 - the response always carries pagination.total plus has_more/next_cursor. NEVER sum deal values from a single page while has_more is true; use the reports_get 'deal_pipeline' report for pipeline totals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max 200. | |
| scope | No | active (default) covers only what is still live. Use archived for finished or lost records, or all when the question spans both - historical revenue, deals closed over a period, anything measured across time. Always tell the user which set your answer covers. | active |
| cursor | No | Opaque cursor from a previous response's pagination.next_cursor. Preferred over offset: keyset paging never skips or duplicates rows. | |
| offset | No | Row offset for offset-based paging. Ignored when cursor is supplied. | |
| status | No | Exact status name. Overrides scope, since naming a status already says which set you mean. | |
| owner_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| deals | Yes | ||
| warning | No | Present only when the page is truncated. | |
| pagination | Yes |