You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TOOLS_CONFIGURATION.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,11 +100,11 @@ Special values:
100
100
**Note**: Returns management/admin users who access the Countly dashboard. These are the users who log into Countly to analyze data, configure settings, and manage applications.
**Note**: Manages end-users of the applications being tracked by Countly. These are the users of your mobile apps, websites, or other applications that send data to Countly for analytics.
app_id: {type: 'string',description: 'Application ID (optional if app_name is provided)'},
15
15
app_name: {type: 'string',description: 'Application name (alternative to app_id)'},
16
-
user_data: {type: 'string',description: 'JSON string containing user data'},
16
+
data: {
17
+
type: 'object',
18
+
description: 'User profile data object containing standard and/or custom fields',
19
+
properties: {
20
+
did: {
21
+
type: 'string',
22
+
description: 'Device ID - unique identifier for the user (required)'
23
+
},
24
+
name: {
25
+
type: 'string',
26
+
description: 'User\'s full name'
27
+
},
28
+
username: {
29
+
type: 'string',
30
+
description: 'Username'
31
+
},
32
+
email: {
33
+
type: 'string',
34
+
format: 'email',
35
+
description: 'Email address'
36
+
},
37
+
organization: {
38
+
type: 'string',
39
+
description: 'Organization name'
40
+
},
41
+
phone: {
42
+
type: 'string',
43
+
description: 'Phone number'
44
+
},
45
+
picture: {
46
+
type: 'string',
47
+
format: 'uri',
48
+
description: 'URL to user\'s profile picture'
49
+
},
50
+
gender: {
51
+
type: 'string',
52
+
enum: ['M','F'],
53
+
description: 'Gender (M for Male, F for Female)'
54
+
},
55
+
byear: {
56
+
type: 'number',
57
+
description: 'Birth year (e.g., 1995)'
58
+
},
59
+
custom: {
60
+
type: 'object',
61
+
description: 'Custom key-value pairs specific to your application. Values can be strings, numbers, arrays, or objects. Examples: subscription_plan, role, preferences, achievements, etc.',
description: 'Delete an app user (end-user of your application)',
101
+
exportconsteditAppUserToolDefinition={
102
+
name: 'edit_app_user',
103
+
description: 'Update existing app user(s) using MongoDB query and update operations. Allows bulk updates matching specific criteria.',
54
104
inputSchema: {
55
105
type: 'object',
56
106
properties: {
57
107
app_id: {type: 'string',description: 'Application ID (optional if app_name is provided)'},
58
108
app_name: {type: 'string',description: 'Application name (alternative to app_id)'},
59
-
uid: {type: 'string',description: 'User ID to delete'},
60
-
force: {type: 'boolean',description: 'Force delete if multiple users match',default: false},
109
+
query: {
110
+
type: 'object',
111
+
description: 'MongoDB query object to find users to update. Examples: {"uid": "user123"} to update specific user, {"custom.plan": "free"} to update all free plan users, {} to update all users (use with caution)',
112
+
additionalProperties: true
113
+
},
114
+
update: {
115
+
type: 'object',
116
+
description: 'MongoDB update object specifying how to modify matching users. Use MongoDB update operators like $set, $inc, $push, $pull, etc.',
117
+
properties: {
118
+
$set: {
119
+
type: 'object',
120
+
description: 'Set field values. Example: {"name": "New Name", "custom.plan": "premium"}',
description: 'Export all data for app users (end-users of your application)',
191
+
exportconstdeleteAppUserToolDefinition={
192
+
name: 'delete_app_user',
193
+
description: 'Delete app user(s) matching a MongoDB query. Can delete single or multiple users based on the query criteria.',
99
194
inputSchema: {
100
195
type: 'object',
101
196
properties: {
102
197
app_id: {type: 'string',description: 'Application ID (optional if app_name is provided)'},
103
198
app_name: {type: 'string',description: 'Application name (alternative to app_id)'},
104
-
export_type: {
105
-
type: 'string',
106
-
enum: ['json','csv'],
107
-
description: 'Export format',
108
-
default: 'json'
199
+
query: {
200
+
type: 'object',
201
+
description: 'MongoDB query object to find users to delete. Examples: {"uid": "user123"} to delete specific user, {"custom.plan": "expired"} to delete all users with expired plan, {"did": "device-id"} to delete by device ID',
202
+
additionalProperties: true
203
+
},
204
+
force: {
205
+
type: 'boolean',
206
+
description: 'Force delete if multiple users match the query. Set to true to allow deletion of multiple users at once.',
0 commit comments