Skip to main content
Glama

Revoke a user's auth tokens

cometchat_revoke_auth_tokens
Destructive

Revokes a user's auth tokens (all, or the one auth_token given), so they must sign in with a new token. The user and their data are kept.

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>",
      "uid": "<uid>"
    },
    "name": "cometchat_revoke_auth_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesUser ID
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.
auth_tokenNoOnly this token (optional; default: all of the user's tokens)

Output Schema

NameRequiredDescriptionDefault
uidYesUser ID
app_idYesApp ID
revokedYesall, one, or none (the user had no tokens)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true with idempotentHint=false, and the description adds the crucial scoping detail that destruction is limited to tokens while the user and their data survive. That is real value beyond the annotations, though it omits how already-issued sessions behave immediately after revocation.

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 scope and the safety-relevant 'data are kept' reassurance front-loaded. Every clause carries information an 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?

With rich annotations, full schema coverage, and an output schema, the description covers purpose, scope, and non-destructiveness adequately for a simple revoke operation. It could have mentioned that the call is a no-op without confirm=true, which is a notable behavioral prerequisite for correct invocation.

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%, so uid, app_id, confirm, and auth_token are all documented in the schema itself; per calibration this establishes a baseline of 3. The description only restates the auth_token default ('all') that the schema already declares and adds nothing about the confirm gate.

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 (revokes) and resource (a user's auth tokens) plus the scope options (all vs. the single auth_token). The clause 'so they must sign in with a new token' and 'The user and their data are kept' make the effect unambiguous and implicitly separate it from create_auth_token and delete_users.

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

Usage Guidelines3/5

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

The description conveys the operational context (forcing re-authentication) but never says when to prefer this over the sibling create_auth_token or delete_users, nor any exclusions or prerequisites. Usage is implied rather than stated.

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.