Skip to main content
Glama

Create a login token for a user

cometchat_create_auth_token
Destructive

Creates a login auth token for a user, for testing loginWithAuthToken(). It logs in as that user: use it, don't print it. Revoke with cometchat_revoke_auth_tokens.

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

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. 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
uidYesUser ID
app_idYesApp ID
auth_tokenYesThe token

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?

"It logs in as that user" adds genuinely important behavior beyond the annotations, which only declare destructiveHint=true, openWorldHint=true, idempotentHint=false, readOnlyHint=false. The secret-handling instruction (don't print it) is also useful operational context. However, nothing is said about token lifetime, scope, or how the confirm/approval_code gate plays out in practice, so it is informative but incomplete for a destructive, non-idempotent tool.

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?

Three short sentences, front-loaded with the action, then handling guidance, then the revocation path. No filler, and each 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 annotations, a full-coverage schema, and an output schema present, the description covers purpose, security handling, and cleanup, which is most of what an agent needs. The remaining gap is token lifetime and what the returned token grants, which the output schema partly covers.

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 all four parameters, including the confirm/approval_code approval flow, are already fully documented in the schema. The description adds no parameter-level meaning (e.g. what uid scoping implies for the token), 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?

States a specific verb and resource ("Creates a login auth token for a user") and names the exact function it exercises (loginWithAuthToken()). It also names its inverse sibling, cometchat_revoke_auth_tokens, so an agent can place it on the token lifecycle without opening another 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?

Gives clear context for use (testing loginWithAuthToken()) and an explicit follow-up route (revoke with cometchat_revoke_auth_tokens), plus a handling rule: use it, don't print it. It does not state when-not to use it versus building sessions another way, so it stops short of full when/when-not guidance.

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.