search_crm
Find people or organisations with a combinable filter over all fields. filter = { all: [conditions], any: [conditions] } — every 'all' condition must match, and at least one 'any' condition if given. Condition = { field, op, value }: field is a column (e.g. city, created_at, retention_review_at), 'label', 'custom.' or 'organisation' (people: name or id of any linked organisation). Ops by kind — text: eq, neq, contains, not_contains, starts_with, in, empty, not_empty; number: eq, neq, gt, gte, lt, lte, between [a,b]; date: eq, gt, gte, lt, lte, between, last_days N, older_than_days N, next_days N, overdue; boolean: is_true, is_false; list (label, multiselect, organisation): has, has_all, has_none. Or pass saved_filter_id. Returns { total, rows } (rows with labels and custom fields; limit default 50, max 500; offset; sort {field, desc}) or with ids_only=true { total, ids } (up to 20000) for recipient lists and exports.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity": "<entity>"
},
"name": "search_crm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order | |
| limit | No | Maximum number of entries to return | |
| entity | Yes | contacts | accounts | |
| filter | No | Filter { all: [conditions], any: [conditions] }, each condition { field, op, value } | |
| offset | No | Number of entries to skip (for paging) | |
| ids_only | No | Return only { total, ids } (up to 20000), e.g. for recipient lists and exports | |
| saved_filter_id | No | ID of the saved filter |