list_leads
List leads for the current tenant. Filters: search (title/email/phone/best_phone — a search term that looks like a NUMBER is additionally matched against the last nine digits of phone, best_phone and fax, so '017612345678' finds a lead stored as '0176 12345678'. To identify a CALLER use find_by_phone instead: it also covers contacts, accounts and the call history, and states how sure it is), category (exact, case-insensitive), status, campaign_id, no_campaign (true = only leads in no campaign), owner_id, min_score (0-100), stale_days (last activity older than N days). order_by: score|last_activity|created (default score). Returns category + score + last_activity_at. Unless include_memory=false, each lead also carries memory[] (its AI-memory items — any note attached to the lead, newest first, each trimmed to ~memory_tokens total per lead) and memory_truncated (true if some notes/text were omitted for size). For a COMPLETE, untruncated pull of every lead's full fields + all memory + nested contact/account, use export_leads instead.
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": "list_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (default 20, max 100) | |
| custom | No | Filter on lead custom fields (list_custom_fields entity 'leads'): { key: value } — value = equals (multiselect: contains), array = any of (multiselect: contains all), null = empty. E.g. { "stufe": "A", "marken": ["KTM"] }. | |
| offset | No | Pagination offset (default 0) | |
| search | No | Free-text search term | |
| status | No | Only entries with this status | |
| category | No | Exact category match (case-insensitive), e.g. 'dgnb' | |
| order_by | No | score | last_activity | created | |
| owner_id | No | ID of the owner (user) | |
| min_score | No | Only leads with at least this score (0-100) | |
| stale_days | No | Only leads whose last activity is older than N days | |
| campaign_id | No | ID of the campaign | |
| no_campaign | No | Only leads not assigned to any campaign | |
| memory_tokens | No | Approx max tokens of memory per lead (default 200, max 1000); older entries cut off | |
| include_memory | No | Attach recent AI memory per lead (default true) |