Skip to content

Manage users

List, create, update, block and unblock the people who sign in to your app through MCP.

User tools work with your app's end users: the people who sign in to the app you built. They are separate from the records in your collections.

List users#

list_users returns one page of users.

  • search matches email or name.
  • role filters by role id.
  • active filters by whether the user is active or blocked.
  • sort is one of created_at, last_login_at, email, full_name or role. Put - in front for descending order.
  • limit goes up to 200.

get_user returns a single user by id.

Create a user#

create_user needs an email. Everything else is optional.

emailstringrequired

The user's email.

full_namestring
phonestring
roleinteger

The role id. The default is 1.

passwordstring

At least 8 characters.

extraobject

Extra fields defined by your app's User collection.

Update a user#

update_user is a partial update. It can change full_name, phone, role, avatar_url and extra. Fields in extra are merged into the existing ones.

Email and password can't be changed with this tool.

Block or unblock a user#

set_user_active with active set to false blocks a user. With true it unblocks them.

Users are never deleted. Blocking is how you remove someone's access.