Skip to main content
Glama

Create an API key

cometchat_create_api_key
Destructive

Creates an API key and returns its value: fullAccess (REST, server-side env only) or authOnly (client Auth Key). Write it to an env file; don't echo it. Check cometchat_list_api_keys first.

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>",
      "name": "<name>",
      "scope": "<scope>"
    },
    "name": "cometchat_create_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesKey name, e.g. 'data-import' or 'backend'
scopeYesfullAccess = REST API key; authOnly = Auth Key
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
nameYesKey name
scopeYesScope
app_idYesApp ID
api_keyYesThe key. Store it server-side; don't print it back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is largely covered. The description adds real value with secret-handling behavior ('Write it to an env file; don't echo it') and the prerequisite listing check, but says nothing about the approval/confirm flow that governs whether the call actually lands, leaving that burden entirely on the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Very short and front-loaded, with the secret-handling warning placed before the prerequisite. Nothing extraneous, though the compressed phrasing packs three distinct concerns (return value, handling rule, prerequisite) into three clauses with minimal connective structure.

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

Completeness3/5

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

An output schema exists, so return-format explanation is unnecessary, and the description covers handling and prerequisites. However, for a destructive, non-idempotent write tool it omits the confirmation/approval gate, key lifetime, and whether creation is reversible, which an agent needs to plan a safe call sequence.

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 the baseline is 3 and all five parameters, including the confirm/approval_code interaction, are already documented in the schema. The description only marginally extends meaning by noting fullAccess is for server-side env use, which slightly sharpens the enum beyond the schema's wording.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Creates an API key') plus what it returns and the two scope variants, so the agent knows exactly what it gets back. It does not distinguish itself from the sibling cometchat_create_auth_token, which overlaps conceptually with the 'authOnly' Auth Key scope, leaving one plausible confusion unresolved.

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?

'Check cometchat_list_api_keys first' gives an explicit precondition and names the sibling to consult. It also scopes fullAccess to server-side env usage, which implicitly steers away from client use, but never states when not to use this tool (e.g., reusing an existing key instead of minting a new one).

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.