Skip to main content
Glama

Add group members

cometchat_add_group_members
Destructive

Adds users to a group as participants, moderators or admins (up to 100 per list); listing a current member under another role changes their role. Failures aren't reported per user: check with cometchat_list_group_members.

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>",
      "guid": "<guid>"
    },
    "name": "cometchat_add_group_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
guidYesGroup ID
adminsNoUIDs to add as admins (full control of the group)
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.
moderatorsNoUIDs to add as moderators (can remove members and messages)
participantsNoUIDs to add as ordinary members

Output Schema

NameRequiredDescriptionDefault
guidYesGroup ID
addedYesUsers sent to CometChat
app_idYesApp ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description adds genuinely new behavioral facts: partial failures are silent, role reassignment happens implicitly for existing members, and each list is capped at 100. The silent-failure disclosure is the kind of non-obvious trait an agent cannot infer from annotations or schema.

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 compact clauses, front-loaded with the core action and role taxonomy, then the two highest-risk caveats. No filler or restatement of the tool name.

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?

An output schema exists, so return shape need not be described, and the destructive/partial-failure semantics are covered. Minor omission: nothing about required permissions or what happens if the group GUID is invalid, though confirm gating is explained in the schema.

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

Parameters4/5

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

Schema coverage is 100%, so role definitions and caps are documented there; the description's added value is the cross-parameter rule that an existing member re-listed under a different role is moved rather than added. It does not explain the confirm gating or app_id, but the schema already does.

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 concrete verb and resource ('Adds users to a group') plus the exact role buckets (participants, moderators, admins) and the list cap. It also distinguishes behavior from a pure add by noting that listing a current member under another role changes their role, so an agent can tell this apart from a plain membership append.

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 clear operative context: role assignment choice, the 100-per-list ceiling, and the important 'failures aren't reported per user' caveat that routes the agent to cometchat_list_group_members to verify. It does not explicitly state when to prefer cometchat_remove_group_member or cometchat_create_group instead, but the guidance it does give is actionable.

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.