Plan to add a person to a ChurchTools group
ct_add_group_memberPlan adding a person to a ChurchTools group by specifying group, person, and optional role or start date. If already a member, update the membership instead.
Instructions
Writes nothing: returns a plan that adds the person to the group. A person who is already a member is an error; use ct_update_group_member. Role ids come from GET /groups/{groupId}/roles (ct_api_request).
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": {
"groupId": "<groupId>",
"personId": "<personId>"
},
"name": "ct_add_group_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| groupId | Yes | The group's id | |
| personId | Yes | The person's id | |
| groupTypeRoleId | No | The role id | |
| memberStartDate | No | YYYY-MM-DD; ChurchTools sets today for an active membership | |
| groupMemberStatus | No | ChurchTools sets active when it is left out |