Skip to main content
Glama

Delete a moderation rule

cometchat_delete_moderation_rule
Destructive

Permanently deletes a custom moderation rule. Built-in rules can only be turned off (cometchat_set_moderation_rule).

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>",
      "rule_id": "<rule_id>"
    },
    "name": "cometchat_delete_moderation_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
rule_idYesRule id
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
app_idYesApp ID
deletedYesAlways true when the call succeeds
rule_idYesRule id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/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 only the word "Permanently," reinforcing irreversibility, but says nothing about error behavior on a missing or already-deleted rule_id, which matters given idempotentHint=false. The approval/confirm mechanics live in the schema, not the description.

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, with the destructive action front-loaded and the carve-out immediately after. Nothing is padded or redundant.

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 full annotations, an output schema, and complete parameter documentation, the description only needs to carry purpose and routing, which it does. The minor gap is that it doesn't mention what happens when the rule_id doesn't exist, relevant since the tool is explicitly non-idempotent.

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 app_id, rule_id, confirm, and approval_code are all documented in the schema itself, including the hosted-vs-local approval flow. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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 custom moderation rule") and immediately narrows scope to custom rules, distinguishing it from set_moderation_rule which handles built-in ones. An agent can tell exactly what this does and what it does not cover.

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 an explicit exclusion (built-in rules cannot be deleted) and names the alternative tool to use instead (cometchat_set_moderation_rule), which is genuine routing guidance. It doesn't spell out other preconditions such as verifying the rule exists first, but the core when/when-not split is present.

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.