Skip to main content
Glama
victor-halla

wwebjs-mcp

by victor-halla

chat_clearState

Stop an ongoing typing or recording action in a WhatsApp chat. Provide the session ID and chat ID to immediately clear the chat's state.

Instructions

[Chat] Stop typing or recording in chat immediately

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatIdNoUnique WhatsApp ID for the given chat (either group or personal)
sessionIdYesUnique identifier for the session (alphanumeric and - allowed)
Behavior3/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It accurately states the core action (stopping typing/recording) and adds 'immediately' to convey urgency. However, it does not explain potential edge cases (e.g., behavior when chatId is omitted, whether both typing and recording are cleared if both are active, or any side effects on the chat state).

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?

The description is a single, efficient sentence with no redundancies. The [Chat] prefix provides quick category recognition, and the wording is clear and direct.

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 tool with only 2 parameters, full schema coverage, and no output schema, the description adequately covers the essential behavior. It could be improved by mentioning when to use it relative to state-sending tools, but for this low complexity, the description is complete enough.

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%: both chatId and sessionId have clear descriptions in the schema. The tool description does not add extra parameter semantics, so the baseline of 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 'Stop typing or recording in chat immediately' clearly states the action (stopping an ongoing state) and the resource (a chat). It distinguishes from siblings like chat_sendStateTyping and chat_sendStateRecording by focusing on stopping rather than starting the state, and from chat_clearMessages which covers messages, not state.

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?

The description gives clear context: it is used to halt an ongoing typing or recording action. It implies the user would call this after having triggered a send state. While it does not explicitly exclude alternatives or mention sibling tools, the intended usage is unambiguous for a simple action.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/victor-halla/wwebjs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server