Skip to main content
Glama
wsapi-chat

WSAPI WhatsApp MCP Server

whatsapp_delete_chat

DestructiveIdempotent

Delete an entire chat and all its messages from your account permanently. This only affects your copy; other participants keep theirs.

Instructions

Delete a whole chat and its messages from this account. It cannot be undone, and it only affects this account: the other participants keep their copy. To empty a chat but keep it in the list, use whatsapp_clear_chat. Returns a success confirmation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatIdYesChat JID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.5/5.0
Behavior4/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 genuinely non-obvious behavior: the deletion is irreversible and is scoped to this account only, with other participants keeping their copy. It also notes the success-confirmation return, though that detail is minor.

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 the action and scope, followed by the irreversibility warning, the sibling disambiguation, and the return value. No filler or repetition.

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 destructive tool with no output schema, the description covers what happens (chat and messages removed), scope of impact, reversibility, an alternative tool, and the return shape. Nothing an agent needs before invoking 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?

One parameter (chatId) with 100% schema description coverage, so the schema already carries the semantics; the description adds nothing about the identifier format. Baseline 3 is appropriate when the schema fully documents the only parameter.

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?

States a specific verb and resource ('Delete a whole chat and its messages from this account') and scopes it precisely. It is immediately distinguishable from the related but different sibling whatsapp_clear_chat, which it names explicitly.

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?

Provides an explicit alternative and the condition that selects it: 'To empty a chat but keep it in the list, use whatsapp_clear_chat.' An agent does not need to infer when to pick this tool over its closest sibling.

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

Deploy Server

Other Tools