People Manage Contact Groups
people_manage_contact_groupsList, create, and update contact groups by adding or removing contacts in one group with a single call.
Instructions
Work with the user's contact groups (labels): 'list' pages through them, system groups such as myContacts and starred included; 'create' adds an empty group; 'modify_members' adds and removes contacts (from people_search_contacts) in one group in a single call. Every result echoes action. 'list' returns contact_groups (resource_name, the group_name to pass; name; group_type 'user' or 'system'; member_count), count, total and next_page_token; 'create' returns status 'ok' and contact_group; 'modify_members' returns status 'ok', group_name, not_found and cannot_remove_last_group (both empty when every change applied).
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": {
"action": "<action>"
},
"name": "people_manage_contact_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the new group; required for 'create'. Google rejects a name the user already has for a group. | |
| action | Yes | 'list' pages through the user's contact groups; 'create' adds an empty group called name; 'modify_members' adds contacts to and removes contacts from the group group_name. | |
| page_size | No | For 'list': contact groups per page, 1 to 1000, default 100. | |
| group_name | No | Contact group resource name, e.g. 'contactGroups/myContacts', as resource_name in 'list' results; required for 'modify_members'. A bare ID is prefixed automatically. | |
| page_token | No | For 'list': the next_page_token of the previous 'list' response; omit for the first page. | |
| resource_names_to_add | No | For 'modify_members': contact resource names (people/...) from people_search_contacts to add to the group; this list or resource_names_to_remove must be non-empty. | |
| resource_names_to_remove | No | For 'modify_members': contact resource names (people/...) to remove from the group. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| total | No | ||
| action | No | ||
| status | No | Machine-readable operation status. | |
| not_found | No | ||
| group_name | No | ||
| contact_group | No | ||
| contact_groups | No | ||
| next_page_token | No | Opaque token for retrieving the next page, or null when complete. | |
| cannot_remove_last_group | No |