list_accounts
Retrieve and filter customer accounts from Custify using customizable criteria like churn status, health scores, or segment membership to analyze account data.
Instructions
List Custify accounts/companies with optional filters. Filters use Custify's filter format: each filter is an object with fieldName, fieldType, filterType, and filterValue. Use the list_attributes tool to discover available fields and their types. Common examples:
Churned accounts: {"fieldName":"churned","fieldType":"Boolean","filterType":"true"}
Name contains: {"fieldName":"name","fieldType":"String","filterType":"contains","filterValue":"acme"}
Health score > 50: {"fieldName":"metrics.health_scores.<score_id>","fieldType":"Number","filterType":"greater","filterValue":"50"}
In segment: {"fieldName":"metrics.health_scores.<score_id>","fieldType":"Segment","filterType":"is_any_of","filterValue":["<segment_id>"]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | Array of filter objects. Use list_attributes to discover available fields. | |
| sorting_field | No | Field name to sort by (e.g. "name", "signed_up_at", "metrics.health_scores.<id>") | |
| sorting_direction | No | Sort direction (default: desc) | |
| limit | No | Number of results (1-100, default 25) | |
| offset | No | Pagination offset (default 0) |