# get_role_member_counts

Source: https://modulify.ai/docs/mcp/workspaces/get-role-member-counts

Counts how many people hold each role in a workspace.

- Title: Count the members on each role
- Scope: `workspaces:read`
- Access: Read only

Read it before `delete_workspace_role`, because deleting a role that people still hold moves them back to the stock Member role. Read it before changing a role's permissions with `update_workspace_role` too, so you know how many people the change reaches.

The answer maps each role to its count, keyed by `owner`, `member` or a custom role's id. Only people who have joined are counted, not pending invitations, and a role nobody holds is left out. See [Members and roles](https://modulify.ai/docs/reference/members-and-roles#delete-a-custom-role).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `workspaceId` | string | Yes | The workspace id. |