User Traits
rybbit_get_user_traitsLists user trait keys, returns distinct values for a trait key, or finds users matching a specific trait key-value pair in Rybbit Analytics.
Instructions
Get user trait keys, values, or find users by trait. mode='keys' lists all trait keys. mode='values' (default when key is provided) returns distinct values for a trait key. mode='users' finds users matching a specific trait key+value pair (case-insensitive).
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": {
"siteId": "<siteId>"
},
"name": "rybbit_get_user_traits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Trait key (required for 'values' and 'users' modes) | |
| mode | No | 'keys' to list trait keys, 'values' to get values for a key, 'users' to find users by trait. Default: 'keys' if no key provided, 'values' if key is provided. | |
| limit | No | Max values or users to return; `total` says how many match | |
| value | No | Trait value (required for 'users' mode) | |
| siteId | Yes | Site ID (numeric ID or domain identifier) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | ||
| note | No | Caveat about this response, e.g. how many rows were returned and how to get the rest | |
| total | No | Values or users matching, across all pages | |
| users | No | mode=users: users having the trait value | |
| values | No | mode=values: distinct values of the trait | |
| hasMore | No | ||
| truncated | No | True when rows were dropped to keep the response under the size cap |