Skip to main content
Glama

chats_delete

Destructive

Permanently delete a chat on a supported provider UI after explicit confirmation and destructive-action safeguards; export a copy first when you need one.

Instructions

Permanently delete a chat on the provider UI. Destructive and audited: requires confirm:true plus allowDestructive on server and browser. Prefer chats_export first if you need a copy; chat_cache_delete only removes local cache. Captcha is never auto-solved.

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": {
      "platform": "<platform>",
      "chatId": "<chatId>",
      "confirm": "<confirm>"
    },
    "name": "chats_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatIdYesChat id to delete on the provider
confirmYesMust be true to proceed with deletion
platformYesProvider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax
ensureTabNoIf true, tabs_ensure before the mutate when needed (default false)
onCaptchaNoCaptcha policy (default stop). Captcha is never auto-solved. stop=error immediately; wait_human=poll host_state until cleared; allow_agent=return structured challenge and only permit UI action when the operator opted in via the client prompt

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.1.1
    • addedInput schema / properties / ensureTab
      Added value: +{
      +  "description": "If true, tabs_ensure before the mutate when needed (default false)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / onCaptcha
      Added value: +{
      +  "description": "Captcha policy (default stop). Captcha is never auto-solved. stop=error immediately; wait_human=poll host_state until cleared; allow_agent=return structured challenge and only permit UI action when the operator opted in via the client prompt",
      +  "enum": [
      +    "stop",
      +    "wait_human",
      +    "allow_agent"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / platform / description
      Previous value: -"Provider id: chatgpt | grok | grok-x | claude | copilot | qwen | deepseek | perplexity"New value: +"Provider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax"
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "chatgpt",
      -  "grok",
      -  "grok-x",
      -  "copilot",
      -  "claude",
      -  "qwen",
      -  "deepseek",
      -  "perplexity"
      -]New value: +[
      +  "chatgpt",
      +  "grok",
      +  "grok-x",
      +  "copilot",
      +  "claude",
      +  "qwen",
      +  "deepseek",
      +  "perplexity",
      +  "kimi",
      +  "zai",
      +  "minimax"
      +]
  2. Changed3 schema fields changedv1.0.4
    • addedInput schema / properties / chatId / description
      Added value: +"Chat id to delete on the provider"
    • changedInput schema / properties / confirm / description
      Previous value: -"must be true to proceed"New value: +"Must be true to proceed with deletion"
    • addedInput schema / properties / platform / description
      Added value: +"Provider id: chatgpt | grok | grok-x | claude | copilot | qwen | deepseek | perplexity"
  3. First observedv1.0.3

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already mark this as destructive, non-idempotent, and open-world, but the description adds critical context: the action is permanent, audited, gated by `confirm` and `allowDestructive`, and captcha is never auto-solved. These are meaningful behavioral constraints beyond the structured annotations.

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 sentences, front-loaded with the core action and risk, followed by prerequisites, alternatives, and captcha behavior. Every sentence carries useful information with no filler.

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 destructive provider mutation, the description covers the key requirements, safety alternatives, and captcha policy while the schema provides full parameter documentation. No output schema exists, but the description gives enough context to call the tool correctly and understand the main constraints.

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 the input schema already documents the parameters, including `confirm`, `onCaptcha`, and `ensureTab`. The description reinforces the `confirm:true` requirement and mentions `allowDestructive`, but it does not add syntax or semantics beyond the schema for most parameters.

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?

The description states a specific verb and resource: 'Permanently delete a chat on the provider UI.' It clearly distinguishes this from `chat_cache_delete` by noting that the sibling only removes local cache.

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?

It gives explicit operational guidance: use `chats_export` first if a copy is needed, and use `chat_cache_delete` only for local cache removal. It also names the required `confirm:true` and server/browser `allowDestructive` prerequisites, so the agent knows when this tool can actually proceed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.