Tool reference · Groups, access and invites

leave_group

Leave a group

Users with access to a groupdestructive

POST /v1/actions/leave_group · MCP tool leave_group

Removes your own access to a group, and any group permissions you hold there. Contacts you see only through it leave your phones at their next sync; if you’re one of its contacts, you stay one. Coming back takes a new invite. Owners can’t leave a group, since they’re in every group of their directory; it tells them what to do instead.

View as Markdown

Parameters

ParameterTypeRequiredLimits
groupstringrequired

Who can use it

Users get it once they have access to a group, and each call is checked against that access. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.

Annotated destructive, so clients like ChatGPT ask the person before calling it.

Errors

Errors carry a stable code and a message written for people. See errors and their status codes.

curl https://api.withopenbook.com/v1/actions/leave_group \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80"
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "leave_group",
    "arguments": {
      "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80"
    }
  }
}