Skip to main content
Glama

Delete a group

cometchat_delete_group
Destructive

Permanently deletes a group, its members list and its messages. To remove one person use cometchat_remove_group_member.

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

Input Schema

NameRequiredDescriptionDefault
guidYesGroup ID
app_idYesThe CometChat App ID (from cometchat_list_apps).
confirmNoSet true only after the user has explicitly agreed to this change. On a local connection that is enough; on the hosted server this change needs approval_code from the user's browser instead, and confirm is ignored.
approval_codeNoThe code the user got after approving this exact change in their browser. Only ever from the user; never make one up or reuse one for different arguments.

Output Schema

NameRequiredDescriptionDefault
guidYesGroup ID
app_idYesApp ID
deletedYesAlways true when the call succeeds

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, readOnlyHint=false and idempotentHint=false, so the safety profile is covered. The description adds genuinely non-redundant behavior: the deletion cascades to the members list and all messages, which is exactly the consequence an agent needs before invoking a destructive tool. It omits whether any undo or retention window exists.

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 destructive scope stated first and the alternative routing second. Every clause carries information the agent needs.

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 values need no explanation, and the cascade effects plus the destructive annotation make the risk profile complete for a four-parameter destructive tool. The only real gap is that reversibility and the confirm/approval gating are left entirely to the schema.

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% and the confirm/approval_code dual-path semantics are documented in the schema itself, so the baseline of 3 applies. The description adds no parameter meaning of its own — it never mentions that confirm or approval_code are required to proceed on hosted vs. local connections.

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 ("Permanently deletes a group") and enumerates the exact blast radius: members list and messages. It also names the narrower sibling cometchat_remove_group_member, so an agent can distinguish whole-group deletion from single-member removal without opening either 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?

Provides a clear when-to-use signal by contrasting with cometchat_remove_group_member for the single-person case, which implies this tool is for removing the entire group. It does not state prerequisites or explicitly warn against using it when the user merely wants to leave/archive, so it stops short of full when/when-not coverage.

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.