# Update account member

Tool: `veryfront__update_account_member`

Change an account member's role. Requires account.members.manage.

## Arguments

| Name         | Type          | Required | Description                                                                                                                                                                                                               |
| ------------ | ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `role`       | string        | Yes      | Member role. Promoting to or demoting from owner requires account ownership authority. The account must retain at least one owner. Setting the current role succeeds without a change. One of `owner`, `admin`, `member`. |
| `account_id` | string · uuid | Yes      | Provide the account id.                                                                                                                                                                                                   |
| `user_id`    | string · uuid | Yes      | Provide the user id.                                                                                                                                                                                                      |

## 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_account_member",
    "arguments": {
      "role": "owner",
      "account_id": "00000000-0000-0000-0000-000000000000",
      "user_id": "00000000-0000-0000-0000-000000000000"
    }
  }
}'
```

## 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\",\"invited_by_user_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"string\",\"updated_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "user_id": "00000000-0000-0000-0000-000000000000",
      "email": "string",
      "name": "string",
      "avatar_src": "string",
      "role": "owner",
      "invited_by_user_id": "00000000-0000-0000-0000-000000000000",
      "created_at": "string",
      "updated_at": "string"
    }
  }
}
```
