workspaces_leads_list
Paginated lead list with column values, filtering, ordering, and search. Pass meta=false to omit the bulky meta block (available views, filters, and segments) — recommended for agent/MCP use to save context tokens.
Method: GET /api/v1/workspaces/{workspace_sqid}/leads/
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "workspaces_leads_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Substring search across contact, lead_name, and all context fields. | |
| qf | No | Ad-hoc column filters as a JSON array, ANDed on top of `filter`/`segment`/`status`/`q`. Each entry is `{"field": <key>, "op": <operator>, ...}` where `op` is `in` (with `values`, a `null` element meaning blanks) or one of the FilterConfig operators `=`, `!=`, `>`, `>=`, `<`, `<=`, `contains`, `is empty`, `is not empty` (with `value`, except for the last two). Discovery fields are not supported. Example: `[{"field":"status","op":"in","values":["NEW",null]}]`. | |
| meta | No | Include the `meta` block (available views, filters, segments) in the response. Default `true`. Pass `false` to omit — saves tokens in MCP/agent scenarios. | |
| page | No | Page number (default 1). | |
| view | No | ViewConfig sqid — determines which columns appear in `column_values`. Overridden by `fields`. | |
| fields | No | Comma-separated field keys to include in `column_values`, overrides `view`. E.g. `contact,company_name,kdm_email`. | |
| filter | No | FilterConfig sqid — apply this filter to the lead queryset. | |
| status | No | Filter by lead status. Omit or leave empty to hide ARCHIVED leads (the default). Pass a specific status value (e.g. `INTERESTED`) to show only that status, or `__all__` to include every status including ARCHIVED. | |
| segment | No | Segment sqid — list only leads in this segment. | |
| ordering | No | Field key to sort by (prefix with `-` for descending). E.g. `-created_at`. Default: `-updated_at`. Overrides the sort stored on `view`. | |
| per_page | No | Results per page (default 25, max 200). | |
| import_id | No | Filter leads by CSV import batch id. |