Deactivate team member
deactivate_team_memberDeactivate a team member: they lose access to this organization, but the record — and every order they sold — is kept. The org Owner can never be deactivated, and you cannot deactivate yourself. Call once to preview (confirm defaults to false), show the preview to the user, then call again with confirm=true and the same idempotency_key to deactivate them. Owner/Admin only.
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": {
"member_id": "<member_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "deactivate_team_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to true ONLY after showing the preview to the user and getting their approval. Default false: returns a preview of exactly what would happen and changes nothing. | |
| member_id | Yes | Team member ID (the membership id) from list_team_members. | |
| idempotency_key | Yes | A unique key for this write (e.g. a UUID). REQUIRED. Reuse the exact same key if you retry this call — a replay returns the original result instead of executing again. A retry with a different key (or none) may create a second event or send a second broadcast. | |
| organization_id | No | Organization ID. Required when you belong to several organizations — use list_my_organizations to see them. Omit it when you belong to exactly one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| member | No | ||
| preview | Yes | ||
| summary | No | ||
| replayed | No | ||
| confirm_required | No |