# block_contacts

**Block requests from my contacts**

Every user · destructive

Blocks requests from the people whose mobile numbers are on contacts in the user’s own directory, Personal, or with blocked: false unblocks them: the person with that number can’t send you any request, inside your groups or from others, from a scan or an ask, and isn’t told; requests from them already waiting for you go unanswered. It blocks only requests: groups and what you see of each other stay as they are. Blocked contacts are on your account’s Blocked from requests list, which Manage Account shows, and stay there after the contact is deleted. Up to 500 a call.

## Parameters

| Parameter | Type | Required | Limits |
|---|---|---|---|
| `contacts` | `string[]` | required | at least 1, up to 500 |
| `blocked` | `boolean` | 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 **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](https://withopenbook.com/docs/api#errors).

HTTP:

```bash
curl https://api.withopenbook.com/v1/actions/block_contacts \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "contacts": [
    "3d9a6f2c-8b4e-4c1a-9f7d-6e2b8a5c1f40"
  ]
}'
```

MCP:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "block_contacts",
    "arguments": {
      "contacts": [
        "3d9a6f2c-8b4e-4c1a-9f7d-6e2b8a5c1f40"
      ]
    }
  }
}
```

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