Tool reference · Groups, access and invites

manage_access

Give, change or remove access

Users with access to a groupdestructive

POST /v1/actions/manage_access · MCP tool manage_access

Gives someone access to a group (give), changes theirs (change) or takes it away (remove), by their user ID from group_access, for people with Give access on the group. Access is per user, per group: view, add, edit, delete, and the group permissions, each named for the part of the group’s Manage page it opens: give_access (Give access), whos_in (Who’s in), join_and_find (Who can join and find it: who lets people in, whether anyone with access can invite, whether joiners become contacts, QR codes on cards and Hide from search), what_people_see (What people see: field rules, delivery and peer grants), how_it_looks (How it looks: its name and color), share_with_group (Share with the group: open a contact’s fields to everyone who sees it there, as far as they see them, D135), reminders (Reminders: add, change and delete the group’s reminders, and mark them done), calendar (Calendar: add, change and delete the group’s events), group_notes (Notes: add, change and delete the group’s notes, never a contact’s Notes), change_history (Change history: read the history of its contacts with contact_history and revert a change with revert_contact_change) and delete_group (Delete the group). Everyone who sees a group reads its reminders, events and notes; those three only let someone change them. A key left out is off when giving access and stays as it is when changing it. overrides are field rules for this person in this group, keyed like the group’s rules (phone.mobile, email.work, note), each visible, request or hidden; they replace the group’s rule for them, opening a field or closing it. Left out, the person keeps the overrides they have; {} takes them all off. Needs Give access on the group, and only owners give more than they hold: only owners open a field the group hides, and nobody else opens one further than they see it. With directory and create_groups instead of group, owners give or take away Create groups in that directory.

View as Markdown

Parameters

ParameterTypeRequiredLimitsWhat
action"give" | "change" | "remove"required
userstringrequired
groupstringoptional
accessobjectoptional
access.addbooleanoptional
access.editbooleanoptional
access.deletebooleanoptional
access.give_accessbooleanoptional
access.whos_inbooleanoptional
access.join_and_findbooleanoptional
access.what_people_seebooleanoptional
access.how_it_looksbooleanoptional
access.share_with_groupbooleanoptional
access.remindersbooleanoptional
access.calendarbooleanoptional
access.group_notesbooleanoptional
access.change_historybooleanoptionalChange history: reading the history of the group’s contacts, change by change, and reverting one (D160, D164).
access.delete_groupbooleanoptional
access.overrides{ [key]: "visible" | "request" | "hidden" }optional
directorystringoptional
create_groupsbooleanoptional

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/manage_access \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "give",
  "user": "e3a7c1f5-9b2d-4f6a-8c4e-7d1b5f9a3c10",
  "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80",
  "access": {
    "add": false,
    "edit": false,
    "overrides": {
      "phone.mobile": "visible"
    }
  }
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manage_access",
    "arguments": {
      "action": "give",
      "user": "e3a7c1f5-9b2d-4f6a-8c4e-7d1b5f9a3c10",
      "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80",
      "access": {
        "add": false,
        "edit": false,
        "overrides": {
          "phone.mobile": "visible"
        }
      }
    }
  }
}