Skip to main content
Glama

Delete an API key

cometchat_delete_api_key
Destructive

Permanently deletes an API key, given its value; anything using it stops working at once. To rotate, create the new key 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>",
      "api_key": "<api_key>"
    },
    "name": "cometchat_delete_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe CometChat App ID (from cometchat_list_apps).
api_keyYesThe key to delete (its value from cometchat_list_api_keys)
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
nameYesName of the deleted key
scopeYesfullAccess or authOnly
app_idYesApp ID
deletedYesAlways true when the call succeeds

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 declare destructiveHint=true and idempotentHint=false, so the safety profile is known. The description still adds real value beyond them: permanence, immediate breakage of anything consuming the key, and the rotate-after-create sequencing. It does not restate the confirm/approval_code requirement, but that lives fully in 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.

Conciseness5/5

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

Two short clauses with no filler: the destructive effect and the safety-relevant ordering are both front-loaded, and every sentence earns its place.

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?

For a destructive four-parameter tool, the description covers impact and sequencing while the schema handles the approval mechanics and an output schema exists for returns. Nothing critical is missing, though it could have flagged that deletion cannot be undone via the create sibling (a new key has a different value).

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%, including detailed guidance on confirm and approval_code, so the schema carries parameter semantics. The description only adds a hint that api_key is the key's value, matching the schema's wording without extending it.

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?

The description opens with a specific verb and resource ('Permanently deletes an API key') and narrows the identifier ('given its value'), so an agent knows exactly which object is targeted. It implicitly routes to the create sibling via 'To rotate, create the new key first,' though it never names that tool explicitly.

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?

'To rotate, create the new key first' gives concrete ordering guidance that shapes when this tool is safe to call, and the impact clause warns what happens on invocation. It stops short of stating explicit exclusions or prerequisites such as the approval flow, which the schema covers instead.

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.