Tool reference · Directories and organizations
create_organization
Start an organization or a group of your own
Every user
POST /v1/actions/create_organization · MCP tool create_organization
Creates an organization with one directory and its first group, or, leaving out name, a group of your own in your own directory, Personal, which you run as an organization’s owners run theirs, and can move into an organization you own later with move_to_organization. Contacts live only in groups, so ask what to call it (first_group), for who’s in it, like Parents, 1st Grade Teachers, Book Club or Sales People, and its field rules (rules), keyed like "phone.mobile"; Notes start Visible unless rules says otherwise ("note"), and every other field starts Hidden. You become its owner, and manage_groups makes more groups. Built from an email group, like a Google Group or a groups.io group, give its address as email_group.
Parameters
| Parameter | Type | Required | Limits | What |
|---|---|---|---|---|
name | string | optional | ||
first_group | string | required | ||
rules | { [key]: "visible" | "request" | "hidden" } | optional | ||
email_group | string or null | optional | up to 254 characters | The address of the email group this group comes from, like maple-court@googlegroups.com or a groups.io group’s, when you built it from one (a Google Group, a groups.io group or any mailing list); null on update takes it off. Only the group’s managers see it. The first group from an email group that 5 people join makes the person who named it a Founding Member, a special edition of their QR Card; Openbook never says whether another group came from the same email group, so never promise it. Who can join and find it. |
Who can use it
Every user has it. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.
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/create_organization \
-H "Authorization: Bearer $OPENBOOK_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Riverside FC",
"first_group": "Parents",
"rules": {
"phone.mobile": "request",
"email.other": "visible"
}
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_organization",
"arguments": {
"name": "Riverside FC",
"first_group": "Parents",
"rules": {
"phone.mobile": "request",
"email.other": "visible"
}
}
}
}