Skip to main content
Glama

Deactivate or reactivate users

cometchat_set_users_active
Destructive

Deactivates or reactivates up to 25 users. A deactivated user can't log in; their data is kept. Deactivation reports per user (uids, failed); reactivation is one request. To erase users use cometchat_delete_users.

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": {
      "app_id": "<app_id>",
      "uids": "<uids>",
      "active": "<active>"
    },
    "name": "cometchat_set_users_active"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidsYesUser IDs
activeYesfalse = deactivate, true = reactivate
app_idYesThe CometChat App ID (from cometchat_list_apps).
confirmNoSet true only after the user has explicitly agreed to this change. Without it, nothing happens and you get a summary to show them.

Output Schema

NameRequiredDescriptionDefault
uidsYesUsers now in the requested state
activeYesNew state
app_idYesApp ID
failedNoUsers that weren't changed; tell the user

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructive=true and readOnly=false, so the safety bar is partly met structurally. The description adds real behavioral context beyond them: deactivated users cannot log in, their data is retained, and deactivation can partially fail with per-user reporting (uids, failed) while reactivation is a single request. It does not mention immediacy of session revocation or that confirm is required before anything happens.

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

Conciseness4/5

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

Three short sentences, front-loaded with the action and scope, then behavior, then the alternative. Every sentence carries information; the shorthand '(uids, failed)' is slightly terse but still readable.

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?

With an output schema present, return formatting need not be explained, and annotations plus a fully documented schema carry the structural load. The description fills the important gaps—data retention, partial-failure semantics, and the delete alternative—though it omits the confirm gate and session-revocation timing that matter for a destructive tool.

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 the baseline is 3; the schema already documents uids, active, app_id and confirm in detail. The description restates the active semantics ('deactivates or reactivates') and hints at partial results but adds no format or limit detail beyond the schema's maxItems of 25.

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 pair and resource ('Deactivates or reactivates ... users') and bounds the scope ('up to 25 users'). It also explicitly distinguishes itself from the erase operation by naming cometchat_delete_users, so an agent can separate it from deletion and creation siblings without opening any schema.

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?

Gives a clear routing rule: 'To erase users use cometchat_delete_users,' which tells the agent when this tool is the wrong choice. The deactivate-vs-reactivate choice is covered by the active flag rather than in prose, and there is no guidance on when deactivation is preferable to simply leaving users alone.

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.