Update group membership
update_group_membershipAdd or remove animals in a group using a fresh membership fingerprint; stale fingerprints return a 409, and only changed IDs are returned.
Instructions
Add and remove group members. Pass the membership_fingerprint from a fresh group read; a stale one is a 409 conflict. add/remove ids must not overlap, targets must be same-farm, and additions must be active. Returns the ids actually changed. Removal changes no record and cannot be undone.
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": {
"group_id": "<group_id>",
"membership_fingerprint": "<membership_fingerprint>"
},
"name": "update_group_membership"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| farm_id | No | The ID of the farm (optional if a default is set). | |
| group_id | Yes | ||
| add_animal_ids | No | ||
| remove_animal_ids | No | ||
| membership_fingerprint | Yes |