Add or remove group members
modify_group_membersAdd or remove contacts in a Google Contacts group in a single batch call by resource name. Inspect the response to see which contacts were skipped because they don't exist or can't leave their last group.
Instructions
Adds and/or removes contacts in a contact group (label) in one call — at least one of add/remove is required, together up to ~1000 names. Contacts are addressed by their people/ resource names. The HTTP 200 response is NOT a full success receipt — read it: notFoundResourceNames lists contacts that do not exist (their changes were skipped) and canNotRemoveLastContactGroupResourceNames lists contacts that could not leave their last group. Removing a contact from a group never deletes the contact, and re-running the same call converges. Contacts cannot be removed from contactGroups/myContacts this way.
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": {
"resource_name": "<resource_name>"
},
"name": "modify_group_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Contacts to add to the group. | |
| remove | No | Contacts to remove from the group. | |
| resource_name | Yes | The group's full resource name, e.g. "contactGroups/12abc34d567" — from list_contact_groups. |