Skip to main content
Glama

Turn a moderation rule on or off

cometchat_set_moderation_rule
Destructive

Turns a moderation rule on or off; it applies to new messages. Returns the requested state, not a read-back. Built-in rules can't be deleted, only turned off.

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>",
      "enabled": "<enabled>"
    },
    "name": "cometchat_set_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. Without it, nothing happens and you get a summary to show them.
enabledYestrue = on, false = off
rule_idYesRule id

Output Schema

NameRequiredDescriptionDefault
app_idYesApp ID
enabledYesNew state
rule_idYesRule 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 destructive/mutating behavior, and the description adds genuine context beyond them: non-retroactive application to new messages only, and the caveat that the response echoes the requested state rather than a read-back (a real trap for agents verifying outcomes). It does not address reversibility or the idempotency mismatch (toggling the same state repeatedly), which keeps it from a 5.

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 dense sentences with no filler; the action and its scope are front-loaded and the deletion caveat follows. Nothing repeats the schema or title verbatim.

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?

For a mutating toggle with full annotations, a complete schema including the confirm gate, and an output schema, the description covers what an agent most needs to know. The only shortfall is that it leaves the destructive/idempotent annotation profile and any platform restrictions on built-in rule toggling unaddressed.

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 coverage is 100%, including the non-obvious confirm gate that suppresses the change until explicit user agreement, so the schema already carries parameter meaning. The description adds no parameter-level detail (e.g., how enabled interacts with built-in vs custom rules), so the baseline 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?

Specific verb+resource: toggling a moderation rule's enabled state, plus scope ('applies to new messages'). The clause 'Built-in rules can't be deleted, only turned off' implicitly distinguishes it from cometchat_delete_moderation_rule, so an agent can separate them without opening schemas.

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?

Clear context is given: this is the tool to reach for when a rule should be disabled but not removed, and the effect is forward-looking only. It stops short of an explicit 'use X instead of Y' routing statement against the delete/list siblings, so it is strong but not exhaustive.

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.