Skip to main content
Glama

Create a user role

cometchat_create_role

Creates a user role (id, name, description). It sets no permissions (do that in the dashboard) and assigns it to nobody (use cometchat_update_user).

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>",
      "role": "<role>",
      "name": "<name>"
    },
    "name": "cometchat_create_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDisplay name
roleYesRole id: letters, numbers, - and _
app_idYesThe CometChat App ID (from cometchat_list_apps).
descriptionNoWhat the role is for

Output Schema

NameRequiredDescriptionDefault
nameYesName
roleYesRole id
app_idYesApp ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior3/5

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

The annotations already declare this is a non-read-only, non-destructive, non-idempotent, open-world operation. The description adds meaningful behavior beyond them by clarifying the two side effects it deliberately omits (permissions, assignment), but it does not address what happens on duplicate role ids or what the response contains (though an output schema 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, front-loaded with the core action and immediately followed by the two scoping caveats. No redundant or filler text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With rich annotations, full schema coverage, and an output schema, the description supplies exactly the missing operational context (no permissions, no assignment, where to do those instead). Nothing an agent needs to invoke it correctly is absent.

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 each field including the role id character constraint and app_id sourcing is documented in the schema. The description's field list (id, name, description) merely mirrors the schema, adding no format or validation detail beyond it, so 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?

The description states a specific verb and resource ("Creates a user role") and enumerates the fields involved (id, name, description), which lets an agent distinguish it immediately from siblings like cometchat_update_user or cometchat_delete_role.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly bounds the tool's scope: permissions are not set here ("do that in the dashboard") and no user is assigned ("use cometchat_update_user"). That names both a non-tool destination and a concrete alternative tool, so an agent knows when to call it and when to route elsewhere.

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.