Skip to main content
Glama

Update a user

cometchat_update_user
Destructive

Updates a user's name, avatar or role; only the fields passed change. To deactivate a user use cometchat_set_users_active.

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>",
      "uid": "<uid>"
    },
    "name": "cometchat_update_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesUser ID
nameNoNew name
roleNoNew role
app_idYesThe CometChat App ID (from cometchat_list_apps).
avatarNoNew avatar URL
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
userYes
app_idYesApp ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the risk profile is carried structurally. The description adds real context beyond that: 'only the fields passed change' tells the agent this is a patch-style partial update rather than a full replace, which prevents clobbering unspecified fields. It stops short of saying which fields are risky to change (role) or that the confirm flag gates execution, though the schema covers the latter.

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 short sentences, zero filler, with the partial-update rule front-loaded and the alternative routing placed second. Nothing could be removed without losing information.

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 and annotations covering safety, the description needs only to state purpose, update semantics and sibling routing, all of which it does. The one modest gap is that a destructive-flagged mutation does not explain what makes it destructive (e.g., a role change altering access), leaving the agent to infer risk from the annotation alone.

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 confirm gate is already documented in structured data. The description enumerates name, avatar and role, which merely mirrors a subset of the schema and adds no format, constraint or validation detail. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description opens with a specific verb and resource ('Updates a user's name, avatar or role') and immediately scopes the operation to a partial update. It also names the sibling it is not (cometchat_set_users_active) for the deactivation case, so an agent can separate this from the closest confusable operation without opening a 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?

It gives explicit routing guidance for one important alternative: deactivation belongs to cometchat_set_users_active, not here. It does not discuss read-vs-write alternatives like cometchat_get_user or when a role change is preferable to creating a new role, but the primary when/when-not distinction is stated outright.

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.