Skip to main content
Glama

Get a CometChat app's credentials

cometchat_get_app_credentials
Read-onlyIdempotent

Returns an app's App ID, region and Auth Key (client-side, development only) with env-var lines for Vite, Next.js and CRA. Write them to a gitignored env file; don't echo the key. For the REST key use cometchat_list_api_keys.

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": "cometchat_get_app_credentials"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe CometChat App ID (from cometchat_list_apps).

Output Schema

NameRequiredDescriptionDefault
envYes
nameNoApp name (create_app)
app_idYesApp ID
regionYesData region: us, eu or in
auth_keyYesAuth Key. Development only: it ships to the browser. Don't print it back to the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered; the description adds genuinely new context about the sensitivity of the returned secret and how to handle it (gitignored file, no echoing) and about the key's dev-only scope. It stops short of describing auth requirements, rate limits, or edge-case behavior for missing apps.

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 what is returned, followed by the handling instruction and the alternative. No filler and nothing redundant with the structured fields.

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?

For a single-parameter read that exposes a secret, the description covers what comes back, how to handle it, and where the alternative key lives; the return shape is further backed by an output schema. Nothing an agent needs in order to call this correctly is missing.

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?

There is only one parameter and schema coverage is 100%, with the schema itself pointing to cometchat_list_apps as the source of the App ID. The description adds nothing about app_id beyond the schema, so the baseline of 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 plus resource: it returns an app's App ID, region and Auth Key, and names the exact fields and output form (env-var lines for Vite, Next.js and CRA). It also distinguishes itself from the sibling that returns the REST key, so an agent can tell the two appart without opening either schema.

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?

Explicitly routes the agent: use this for the client-side Auth Key, use cometchat_list_api_keys for the REST key. The skill also carries an operating instruction (write to a gitignored env file, don't echo the key) and a scope caveat that the Auth Key is client-side and development only.

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.