Skip to navigation

write_user

Invite a person or change a user's roles

Live server: test server (test.mcp.solvimon.com) only.

Invites a person or changes the type or roles of one of a user’s memberships.

Actions: invite, update_membership

  • Both are confirm-first. Without confirmed: true the tool returns the exact request it would send and writes nothing.
  • Pass role_names; they are resolved to role ids. An unknown or ambiguous name is refused with the candidates.
  • role_ids replaces the membership’s roles. To add a role, send the current ones too.
  • An invite sends a real email, also from the test server. Deactivating users is done in Desk.
Invite a sales rep
{"action": "invite", "body": {"username": "jane@acme.com", "account_memberships": [{"account_id": "plat_...", "type": "USER", "role_names": ["Quote Contributor"]}]}}

Example prompts

  • “Invite jane@example.com as a sales rep who can draft quotes.”
  • “Give John Doe the Quote Approver role too, without removing his current roles.”
  • “Make jane@example.com an admin on our sandbox account.”
  • “Change John Doe’s access so he can only view invoices.”

Example output

Illustrative output: this action has side effects, so it wasn’t run for this example.

Prompt: “Invite jane@example.com as a sales rep who can draft quotes.”

Tool call (first call, without confirmed):

{
"action": "invite",
"body": {
"username": "jane@example.com",
"account_memberships": [
{
"account_id": "plat_YwDsM40vxDPmp2CYio1I",
"type": "USER",
"role_names": ["Quote Contributor"]
}
]
}
}

Response (trimmed):

{
"written": false,
"request": {
"method": "POST",
"path": "/v1/users/invite",
"body": {
"username": "jane@example.com",
"account_memberships": [
{
"account_id": "plat_YwDsM40vxDPmp2CYio1I",
"type": "USER",
"role_ids": ["role_zwDePj0uTF8LQQDueH1r"]
}
]
}
},
"resolved_roles": [
{ "name": "Quote Contributor", "id": "role_zwDePj0uTF8LQQDueH1r" }
]
}

Claude’s answer: Here is the invite I would send: jane@example.com joins your sandbox account as a regular user with the Quote Contributor role, so she can create and change quotes. She gets an invitation email as soon as I send it. Shall I go ahead?