Skip to main content
Glama

Edit users

users_write
Destructive

Updates site users (profile data, login, group membership) and creates and updates user groups and their permissions. Users are not created and passwords are not set here: that is done in the site control panel.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>",
      "site_id": "<site_id>"
    },
    "name": "users_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoGroup id.
gidNoGroup id. On group actions it is a synonym for id.
nameNoFull name of a user, 3-35 characters, or the name of a group.
emailNoUser email.
loginNoNew login.
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
fieldsNoExtra profile fields of a user, or permissions of a group. Group permission codes come from groups_rights and group_permissions.
site_idYesSite to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.
user_idNoNumeric user id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "site_id"
      +]
  2. Changed6 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "add",
      -  "register",
      -  "update",
      -  "chlogin",
      -  "chgroup",
      -  "chpass",
      -  "group_add",
      -  "group_update"
      -]New value: +[
      +  "update",
      +  "chlogin",
      +  "chgroup",
      +  "group_add",
      +  "group_update"
      +]
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "add",
      -    "description": "Creates a user (login in nick or user). The full name goes in name (or fields.full_name). Required: password, email, name. Optional: nick, user, fields."
      -  },
      -  {
      -    "const": "register",
      -    "description": "Creates a user (same as add). Required: password, email, name. Optional: nick, user, fields."
      -  },
      -  {
      -    "const": "update",
      -    "description": "Updates a user profile: values that are not passed keep their stored values, an empty string clears a value. The full name goes in name (or fields.full_name). Required: user_id. Optional: name, email, fields."
      -  },
      -  {
      -    "const": "chlogin",
      -    "description": "Changes the login of a user. Required: user_id, login."
      -  },
      -  {
      -    "const": "chgroup",
      -    "description": "Moves a user to another group. Required: user_id, gid."
      -  },
      -  {
      -    "const": "chpass",
      -    "description": "Sets a new password for a user. Required: user_id, password, confirm."
      -  },
      -  {
      -    "const": "group_add",
      -    "description": "Creates a user group. Required: name. Optional: fields."
      -  },
      -  {
      -    "const": "group_update",
      -    "description": "Updates a user group (group id in id or gid). Required: id or gid. Optional: name, fields."
      -  }
      -]New value: +[
      +  {
      +    "const": "update",
      +    "description": "Updates a user profile: values that are not passed keep their stored values, an empty string clears a value. The full name goes in name (or fields.full_name). Required: user_id. Optional: name, email, fields."
      +  },
      +  {
      +    "const": "chlogin",
      +    "description": "Changes the login of a user. Required: user_id, login."
      +  },
      +  {
      +    "const": "chgroup",
      +    "description": "Moves a user to another group. Required: user_id, gid."
      +  },
      +  {
      +    "const": "group_add",
      +    "description": "Creates a user group. Required: name. Optional: fields."
      +  },
      +  {
      +    "const": "group_update",
      +    "description": "Updates a user group (group id in id or gid). Required: id or gid. Optional: name, fields."
      +  }
      +]
    • removedInput schema / properties / confirm
      Removed value: -{
      -  "description": "Pass true only after the user approves this change. Required by: chpass.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / nick
      Removed value: -{
      -  "description": "User login (nick), 2-25 characters. Synonym: user.",
      -  "type": "string"
      -}
    • removedInput schema / properties / password
      Removed value: -{
      -  "description": "User password: only Latin letters, digits, _ and -; 4-15 characters for add, 2-15 for chpass.",
      -  "type": "string"
      -}
    • removedInput schema / properties / user
      Removed value: -{
      -  "description": "Synonym for nick.",
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "add",
      -    "description": "Creates a user (login in nick or user). The full name goes in name (or fields.full_name). Required: password, email, name. Optional: nick, user, fields."
      -  },
      -  {
      -    "const": "register",
      -    "description": "Creates a user (same as add). Required: password, email, name. Optional: nick, user, fields."
      -  },
      -  {
      -    "const": "update",
      -    "description": "Updates a user profile: values that are not passed keep their stored values, an empty string clears a value. The full name goes in name (or fields.full_name). Required: user_id. Optional: name, email, fields."
      -  },
      -  {
      -    "const": "chlogin",
      -    "description": "Changes the login of a user. Required: user_id, login."
      -  },
      -  {
      -    "const": "chgroup",
      -    "description": "Moves a user to another group. Required: user_id, gid."
      -  },
      -  {
      -    "const": "chpass",
      -    "description": "Sets a new password for a user. Required: user_id, password, confirm."
      -  },
      -  {
      -    "const": "group_add",
      -    "description": "Creates a user group. Required: name. Optional: fields."
      -  },
      -  {
      -    "const": "group_update",
      -    "description": "Updates a user group (group id in id or gid). Optional: id, gid, name, fields."
      -  }
      -]New value: +[
      +  {
      +    "const": "add",
      +    "description": "Creates a user (login in nick or user). The full name goes in name (or fields.full_name). Required: password, email, name. Optional: nick, user, fields."
      +  },
      +  {
      +    "const": "register",
      +    "description": "Creates a user (same as add). Required: password, email, name. Optional: nick, user, fields."
      +  },
      +  {
      +    "const": "update",
      +    "description": "Updates a user profile: values that are not passed keep their stored values, an empty string clears a value. The full name goes in name (or fields.full_name). Required: user_id. Optional: name, email, fields."
      +  },
      +  {
      +    "const": "chlogin",
      +    "description": "Changes the login of a user. Required: user_id, login."
      +  },
      +  {
      +    "const": "chgroup",
      +    "description": "Moves a user to another group. Required: user_id, gid."
      +  },
      +  {
      +    "const": "chpass",
      +    "description": "Sets a new password for a user. Required: user_id, password, confirm."
      +  },
      +  {
      +    "const": "group_add",
      +    "description": "Creates a user group. Required: name. Optional: fields."
      +  },
      +  {
      +    "const": "group_update",
      +    "description": "Updates a user group (group id in id or gid). Required: id or gid. Optional: name, fields."
      +  }
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "add",
      -    "description": "Creates a user (login in nick or user). The full name goes in name (or fields.full_name). Required: password, email, name. Optional: nick, user, fields."
      -  },
      -  {
      -    "const": "register",
      -    "description": "Creates a user (same as add). Required: password, email, name. Optional: nick, user, fields."
      -  },
      -  {
      -    "const": "update",
      -    "description": "Updates a user profile. Required: user_id. Optional: name, email, fields."
      -  },
      -  {
      -    "const": "chlogin",
      -    "description": "Changes the login of a user. Required: user_id, login."
      -  },
      -  {
      -    "const": "chgroup",
      -    "description": "Moves a user to another group. Required: user_id, gid."
      -  },
      -  {
      -    "const": "chpass",
      -    "description": "Sets a new password for a user. Required: user_id, password, confirm."
      -  },
      -  {
      -    "const": "group_add",
      -    "description": "Creates a user group. Required: name. Optional: fields."
      -  },
      -  {
      -    "const": "group_update",
      -    "description": "Updates a user group (group id in id or gid). Optional: id, gid, name, fields."
      -  }
      -]New value: +[
      +  {
      +    "const": "add",
      +    "description": "Creates a user (login in nick or user). The full name goes in name (or fields.full_name). Required: password, email, name. Optional: nick, user, fields."
      +  },
      +  {
      +    "const": "register",
      +    "description": "Creates a user (same as add). Required: password, email, name. Optional: nick, user, fields."
      +  },
      +  {
      +    "const": "update",
      +    "description": "Updates a user profile: values that are not passed keep their stored values, an empty string clears a value. The full name goes in name (or fields.full_name). Required: user_id. Optional: name, email, fields."
      +  },
      +  {
      +    "const": "chlogin",
      +    "description": "Changes the login of a user. Required: user_id, login."
      +  },
      +  {
      +    "const": "chgroup",
      +    "description": "Moves a user to another group. Required: user_id, gid."
      +  },
      +  {
      +    "const": "chpass",
      +    "description": "Sets a new password for a user. Required: user_id, password, confirm."
      +  },
      +  {
      +    "const": "group_add",
      +    "description": "Creates a user group. Required: name. Optional: fields."
      +  },
      +  {
      +    "const": "group_update",
      +    "description": "Updates a user group (group id in id or gid). Optional: id, gid, name, fields."
      +  }
      +]
  5. Added

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=false, so the safety profile is known. The description adds the affected resources (profile, login, group membership, group permissions) and what it does not do, but omits reversibility, permission requirements, and side effects of group permission changes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core capabilities and ending with a useful exclusion. There is no redundant restatement of the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex destructive multi-action tool, the description plus rich schema and annotations cover purpose, scope, and exclusions. It could be slightly more complete by pointing to read/delete siblings or emphasizing the destructive implications of group permission changes, but no output schema means return details are not expected.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the schema fully documents all nine parameters including the oneOf action semantics. The description groups capabilities and notes absent operations, but adds little parameter-specific meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: it updates site users across profile data, login, and group membership, and creates or updates user groups and permissions. The explicit exclusion of user creation and password setting further sharpens the scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context for when this mutation tool applies and explicitly says user creation and password changes happen elsewhere in the control panel. It does not name sibling alternatives such as users_read or users_delete, so selection guidance is strong but not complete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.