Tool reference · Groups, access and invites

review_adds

Approve adds of numbers already in the directory

Ownersdestructive

POST /v1/actions/review_adds · MCP tool review_adds

For owners: approves or declines an add of a mobile number the directory already has, which waits for an owner instead of making a second contact, by its contact and group from waiting_adds. approve puts the existing contact in that group; decline leaves it out of it, and the add is gone.

View as Markdown

Parameters

ParameterTypeRequiredLimits
action"approve" | "decline"required
contactstringrequired
groupstringrequired

Who can use it

Owners of an organization have it, and each call is checked against which organizations they own. 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/review_adds \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "approve",
  "contact": "5e8b2d4f-7a1c-4e9b-8d3f-6c2a9e1b4d70",
  "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80"
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "review_adds",
    "arguments": {
      "action": "approve",
      "contact": "5e8b2d4f-7a1c-4e9b-8d3f-6c2a9e1b4d70",
      "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80"
    }
  }
}