Skip to main content
Glama

Delete Chat

delete_chat
DestructiveIdempotent

Permanently delete one of the user's chats: stops any search running in it, revokes its share links and removes its results, then deletes the transcript. Irreversible. The first call returns a preview and confirmation_token; call again with the token only after the user confirms in a later turn.

Input Schema

NameRequiredDescriptionDefault
uidNoOptional Firebase uid. Must match the URL uid unless local fallback is enabled.
chat_idNoThe chat_id from list_chats.
list_idNoOr the list_id run_ugc_agent returned, for the chat that search created.
bearer_tokenNoOptional Firebase ID token. Hosted clients normally authenticate with an API key header or ?uid= in the URL instead.
confirmation_tokenNoOmit on the first call to get a preview and a token. Pass the token back unchanged only after the user confirmed the preview in a later turn.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds substantial detail beyond them: it stops a running search, revokes share links, removes results, deletes the transcript, and is irreversible. It also explains the preview/confirmation-token workflow, which is important behavioral context for a destructive operation.

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 dense sentences with zero waste. The irreversible consequence and confirmation flow are front-loaded before the procedural detail, making the definition easy to scan.

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 mutation with no output schema, the description covers consequences, irreversibility, and the required two-step confirmation. Combined with the fully documented input schema and destructive annotations, an agent has enough information to call it correctly.

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 schema already documents all five parameters, including the confirmation_token workflow. The description reinforces that workflow but does not add meaning beyond the schema for uid, chat_id, list_id, or bearer_token, so the baseline 3 is appropriate.

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 uses a specific verb and resource, 'Permanently delete one of the user's chats,' and immediately lists the exact side effects. It distinguishes deletion from siblings like get_chat, rename_chat, and reset_conversation by emphasizing permanence and transcript removal.

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?

It gives clear procedural guidance for the two-step confirmation flow: first call returns a preview and token, second call happens only after user confirmation. It does not explicitly name alternatives such as get_chat for inspection or preview_automation_deletion, but the usage context is otherwise clear.

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.

Resources