Remove organization member
remove_org_memberRemove someone from the organization. Owners cannot be removed. expected_role must be the member's CURRENT role from list_org_members (e.g. org:member, org:admin); a mismatch returns 409 so a stale view never removes the wrong person. Their place on completed and settled gigs stays as a record: there the member is deactivated, not deleted. Org admins/owners only. Confirmation-gated.
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": {
"user_id": "<user_id>",
"expected_role": "<expected_role>"
},
"name": "remove_org_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | user_id of the member to remove, from list_org_members | |
| expected_role | Yes | the member's current role, from list_org_members | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| confirmation_token | No | leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: { ok } } | |
| error | No | when ok is false |