# upcoming_birthdays

**List birthdays coming up**

Every user · read-only

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`](https://withopenbook.com/docs/tools/update_settings) birthdays changes those. Openbook sends nothing to anyone.

## Parameters

| Parameter | Type | Required | Limits | What |
|---|---|---|---|---|
| `days` | `integer` | optional | 0–366, default 14 | How many days ahead to look, from 0 for today alone to 366, 14 until set. |
| `group` | `string` | optional |  | One group to look in, from [`my_access`](https://withopenbook.com/docs/tools/my_access). Left out, every group the user sees. |
| `limit` | `integer` | optional | 1–500, default 100 |  |
| `cursor` | `string` | optional |  |  |

## 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](https://withopenbook.com/docs/api#errors).

HTTP:

```bash
curl https://api.withopenbook.com/v1/actions/upcoming_birthdays \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"days":7}'
```

MCP:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "upcoming_birthdays",
    "arguments": {
      "days": 7
    }
  }
}
```

> IDs are made up. Get real ones from `my_access` and `search_contacts`, and send the person’s own OAuth token.
