# review_requests

**Grant or decline requests, revoke grants**

Every user · destructive

Answers requests other people sent the user for one field of a contact the user can share, by the request’s ID from [`waiting_requests`](https://withopenbook.com/docs/tools/waiting_requests), and takes back the user’s grants. grant shares that one field with the person who asked, on their phones at their next sync, and tells them; decline tells them no; revoke takes back a grant the user made, by its ID from [`waiting_requests`](https://withopenbook.com/docs/tools/waiting_requests)’ my_grants, which an owner of its directory can also do. Grant, decline or revoke only when the user says so.

## Parameters

| Parameter | Type | Required | Limits |
|---|---|---|---|
| `action` | `"grant" \| "decline" \| "revoke"` | required |  |
| `request` | `string` | optional |  |
| `grant` | `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 **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/review_requests \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "grant",
  "request": "d4c8f2b6-5e1a-4b7d-8f3c-9a6e2d4b8c00"
}'
```

MCP:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "review_requests",
    "arguments": {
      "action": "grant",
      "request": "d4c8f2b6-5e1a-4b7d-8f3c-9a6e2d4b8c00"
    }
  }
}
```

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