# update_me (/mcp/tools/update_me)

`update_me` · Changes data

Change the person's own account: their name, leaving, the apps they allowed, invitations they received.

Set `action` to one of these:
- `update` (needs `body`): Change the person's full name, shown to their teammates; answers the person as `get_me` does. Setting the same name again changes nothing, so a retry is safe.
- `leave_organization` (needs `organizationId`): End the person's membership of an organization and their access to its products; only an Admin's new invitation brings them back. The last active Admin cannot leave (`last_admin`). An organization the person is not an active member of is not found. This can't be undone, so Heuristic asks the person first (see `confirm`).
- `leave_product` (needs `productId`): Remove the person's own access to a product (Users only) until an Admin gives it again. Admins own every product and cannot leave one (`admin_owner`). A product the person cannot open is not found. This can't be undone, so Heuristic asks the person first (see `confirm`).
- `revoke_connected_app` (needs `id`): Disconnect an app or agent the person allowed: its next call is refused, and it must ask the person again to reconnect. Revoking yourself ends this connection. This can't be undone, so Heuristic asks the person first (see `confirm`).
- `revoke_api_key` (needs `keyId`): Revoke one of the person's API keys: anything using it stops at once. Not found: already revoked or expired. This can't be undone, so Heuristic asks the person first (see `confirm`).
- `accept_invitation` (needs `token`): Accept an invitation sent to the person's email address: they join the organization with its role and product access. An accepted or expired one is refused (`invitation_accepted`, `invitation_expired`).

## Actions (set `action`)

### `update`

- Who can use it: Anyone signed in
- Hints: Changes data, Safe to repeat
- Runs: [`update_me`](/api/account/update_me)
- Inputs:
  - `body` (object, required): What to send; each field is described.
    - `name` (string, required): The full name, 1 to 100 characters, on one line.

### `leave_organization`

- Who can use it: Members of the organization
- Hints: Changes data, Can remove data
- Asks the person to confirm before it runs.
- Runs: [`leave_organization`](/api/me/leave_organization)
- Inputs:
  - `organizationId` (string, required): From `get_me`.
  - `confirm` (boolean): True only after the person said yes to the question a first call answered with `confirmation_required`. Ignored when your app can show the person questions: Heuristic then asks them itself.

### `leave_product`

- Who can use it: The product's Owners and Viewers
- Hints: Changes data, Can remove data
- Asks the person to confirm before it runs.
- Runs: [`leave_product`](/api/me/leave_product)
- Inputs:
  - `productId` (string, required): From `read_product` with action `list` or `get_me`.
  - `confirm` (boolean): True only after the person said yes to the question a first call answered with `confirmation_required`. Ignored when your app can show the person questions: Heuristic then asks them itself.

### `revoke_connected_app`

- Who can use it: Anyone signed in
- Hints: Changes data, Can remove data
- Asks the person to confirm before it runs.
- Runs: [`revoke_connected_app`](/api/account/revoke_connected_app)
- Inputs:
  - `id` (string, required): The connected app's id, from `get_me` with action `connected_apps`.
  - `confirm` (boolean): True only after the person said yes to the question a first call answered with `confirmation_required`. Ignored when your app can show the person questions: Heuristic then asks them itself.

### `revoke_api_key`

- Who can use it: Anyone signed in
- Hints: Changes data, Can remove data
- Asks the person to confirm before it runs.
- Runs: [`revoke_api_key`](/api/account/revoke_api_key)
- Inputs:
  - `keyId` (string, required): The API key's id, from `get_me`'s `api_keys` action.
  - `confirm` (boolean): True only after the person said yes to the question a first call answered with `confirmation_required`. Ignored when your app can show the person questions: Heuristic then asks them itself.

### `accept_invitation`

- Who can use it: Only the person invited
- Hints: Changes data
- Runs: [`accept_invitation`](/api/invitations/accept_invitation)
- Inputs:
  - `token` (string, required): The invitation's token: the last part of the link in the invitation email.
