Tool reference · Requests and grants

request_field

Request a contact’s field

Every user

POST /v1/actions/request_field · MCP tool request_field

Sends a request for one field of a contact, like a mobile number a group keeps behind a request, to the people in ask, who are told and can grant or decline it with review_requests; nothing is shared until one says yes. Takes a contact the user sees, or a match from find_people. Ask at least one person who can grant it: someone in the group who sees it or an owner, from get_contact’s can_ask, someone you know from the match’s could_share, or for a missing field someone you know who has the same mobile number. reason goes to them with it. my_requests shows the answer.

View as Markdown

Parameters

ParameterTypeRequiredLimits
field{ type: "phone" | "email" | "address" | "url" | "birthday" | "company" | "title" | "note" | "social" | "photo", label?: string }required
contactstringoptional
matchstringoptional
askstring[]requiredat least 1
reasonstringoptionalup to 500 characters

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/request_field \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "contact": "5e8b2d4f-7a1c-4e9b-8d3f-6c2a9e1b4d70",
  "field": {
    "type": "phone",
    "label": "mobile"
  },
  "ask": [
    "c9f2a6d1-4e7b-4a3c-8f5e-1d6b9c2a7e40"
  ],
  "reason": "Carpool on Saturday"
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "request_field",
    "arguments": {
      "contact": "5e8b2d4f-7a1c-4e9b-8d3f-6c2a9e1b4d70",
      "field": {
        "type": "phone",
        "label": "mobile"
      },
      "ask": [
        "c9f2a6d1-4e7b-4a3c-8f5e-1d6b9c2a7e40"
      ],
      "reason": "Carpool on Saturday"
    }
  }
}