Skip to main content
Glama

Delete users

users_delete
Destructive

Deletes a user or a user group; group members are moved to the target group.

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_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoGroup id.
gidNoGroup id. On group actions it is a synonym for id.
nidNoGroup that receives the members of a deleted group.
nickNoUser login (nick), 2-25 characters. Synonym: user.
userNoSynonym for nick.
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
confirmNoConfirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do.
site_idYesSite to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.

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. Changed3 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "delete",
      -    "description": "Deletes a user (login in nick or user). Required: nick or user, confirm."
      -  },
      -  {
      -    "const": "group_delete",
      -    "description": "Deletes a user group (group id in id or gid) and moves its members to the group nid. Required: id or gid, confirm. Optional: nid."
      -  }
      -]New value: +[
      +  {
      +    "const": "delete",
      +    "description": "Deletes a user (login in nick or user). Required: nick or user. Optional: confirm."
      +  },
      +  {
      +    "const": "group_delete",
      +    "description": "Deletes a user group (group id in id or gid) and moves its members to the group nid. Required: id or gid. Optional: nid, confirm."
      +  }
      +]
    • changedInput schema / properties / confirm / description
      Previous value: -"Pass true only after the user approves this change. Required by: delete, group_delete."New value: +"Confirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do."
    • changedInput schema / required
      Previous value: -[
      -  "action",
      -  "confirm"
      -]New value: +[
      +  "action"
      +]
  3. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "confirm"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "delete",
      -    "description": "Deletes a user (login in nick or user). Required: confirm. Optional: nick, user."
      -  },
      -  {
      -    "const": "group_delete",
      -    "description": "Deletes a user group (group id in id or gid) and moves its members to the group nid. Required: confirm. Optional: id, gid, nid."
      -  }
      -]New value: +[
      +  {
      +    "const": "delete",
      +    "description": "Deletes a user (login in nick or user). Required: nick or user, confirm."
      +  },
      +  {
      +    "const": "group_delete",
      +    "description": "Deletes a user group (group id in id or gid) and moves its members to the group nid. Required: id or gid, confirm. Optional: nid."
      +  }
      +]
  5. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond the annotations: deleting a group does not orphan members, it relocates them to the target group. It doesn't mention the confirm/authorization flow, but the schema does.

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?

A single compact sentence, front-loaded with the verb and both resource types, with the member-migration side effect attached. No redundant restatement of the title or the obviously-destructive nature.

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 destructive tool with 8 parameters and no output schema, the rich 100%-covered input schema carries most of the burden, and the description supplies the one piece of behavioral context an agent most needs: what happens to group members. Minor gaps like confirm handling are covered in the schema rather than missing.

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 description coverage is 100%, so every parameter including the action oneOf variants and synonyms is already documented. The description adds only a light gloss on 'target group' for the nid parameter, which is the expected baseline when the schema carries the load.

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

Purpose4/5

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

The description names a specific verb and two resources: 'Deletes a user or a user group.' That clearly separates it from read/write siblings such as users_read and users_write, though it doesn't explicitly name users_write as the alternative for non-deletion changes.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer it should pick this tool for removals, and the phrase 'group members are moved to the target group' hints at the group_delete path. But there is no explicit when-to-use or when-not-to-use guidance and no mention of action selection between deleting a user versus a group.

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.