Get leads
crm_get_leadsList CRM leads (RLS-scoped). Each row carries contact_id and converted_to: null if nothing has been made from the lead yet, otherwise the contact it belongs to and/or the deal it produced. CHECK IT before offering to create either - Matrix already asks that question when a lead is set to Qualified, and offering again is how the same customer ends up in the CRM twice. DEFAULTS TO ACTIVE LEADS ONLY - statuses the workspace has not marked as terminal. Say so when you answer ("you have 3 active leads"), and read meta.scope_note for how many archived ones were left out. Pass scope: archived or all only when the question is genuinely about closed or historical leads. Max limit 100 - the response always carries pagination.total (full match count) plus has_more/next_cursor. NEVER count or summarise leads from a single page while has_more is true; use pagination.total, or page with next_cursor until has_more is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max 100. | |
| 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. | |
| search | No | Match full_name, email, or company. | |
| 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 | ||
| leads | Yes | ||
| warning | No | Present only when the page is truncated. | |
| pagination | Yes |