# Update project member

Tool: `veryfront__update_project_member`

Changes a non-owner member's role to admin, editor or viewer; the owner changes only through updateProjectOwner. Requires project.members.manage.

## Arguments

| Name                | Type          | Required | Description                                                                                                     |
| ------------------- | ------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
| `user_id`           | string · uuid | Yes      | User ID of the project member.                                                                                  |
| `role`              | string        | Yes      | New role: admin, editor or viewer. Owner promotion uses updateProjectOwner. One of `admin`, `editor`, `viewer`. |
| `project_reference` | string        |          | Project UUID, slug or domain.                                                                                   |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__update_project_member",
    "arguments": {
      "user_id": "00000000-0000-0000-0000-000000000000",
      "role": "admin"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"user_id\":\"00000000-0000-0000-0000-000000000000\",\"email\":\"string\",\"name\":\"string\",\"avatar_src\":\"string\",\"role\":\"owner\",\"source\":\"project\",\"capabilities\":[\"project.read\"]}"
      }
    ],
    "structuredContent": {
      "user_id": "00000000-0000-0000-0000-000000000000",
      "email": "string",
      "name": "string",
      "avatar_src": "string",
      "role": "owner",
      "source": "project",
      "capabilities": [
        "project.read"
      ]
    }
  }
}
```
