Skip to main content
Glama
victor-halla

wwebjs-mcp

by victor-halla

chat_getLabels

Retrieve all labels assigned to a WhatsApp chat. Get an array of label names for a specific chat to manage and organize conversations.

Instructions

[Chat] Return all labels. Return array of all labels assigned to this chat

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?

No annotations are provided, so the description carries full behavioral disclosure. It conveys a read-only operation and array return type, but does not cover edge cases like missing chatId, invalid session, or empty label lists.

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 two concise sentences that immediately state the action and scope. There is no filler or redundant explanation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The absence of output schema and annotations places a heavy burden on the description. It does not clarify the optional chatId behavior or the structure of returned label items, leaving important operational gaps.

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%, with both chatId and sessionId described in the input schema. The description adds no extra parameter detail, but the schema handles the semantics adequately, making a baseline 3 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 clearly states the action ('Return') and the resource ('all labels assigned to this chat'), which distinguishes it from global label tools like client_getLabels. It is specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for chat-scoped label retrieval but does not explicitly contrast with sibling tools like client_getLabels or provide when-not guidance. No alternatives or exclusions are mentioned.

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