Tool reference · Contacts

upcoming_birthdays

List birthdays coming up

Every userread-only

POST /v1/actions/upcoming_birthdays · MCP tool upcoming_birthdays

Lists the birthdays of the people the user sees in their groups, from today through days from now (14 unless set), soonest first, each with when, how many days away and its groups as phones name them; group looks in one group. A birthday comes from the contact as the user sees it, or else from everyone on Openbook by its mobile number, only the month and day, never the year, and only for a number the user has. It looks across every group, whichever ways their birthdays reach the user; update_settings birthdays changes those. Openbook sends nothing to anyone.

View as Markdown

Parameters

ParameterTypeRequiredLimitsWhat
daysintegeroptional0–366, default 14How many days ahead to look, from 0 for today alone to 366, 14 until set.
groupstringoptionalOne group to look in, from my_access. Left out, every group the user sees.
limitintegeroptional1–500, default 100
cursorstringoptional

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.

Annotated read-only, so clients like ChatGPT can call it without asking.

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/upcoming_birthdays \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"days":7}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "upcoming_birthdays",
    "arguments": {
      "days": 7
    }
  }
}