Skip to main content
Glama

WhatsApp Agent: WhatsApp Team Inbox & CRM

Find a chat

whatsapp-find-chat
Read-only

Finds open chats by contact name, phone digits, or words in the last message, ten at most. A full phone number is also looked up directly, so it can find a chat that is closed. Other closed chats are not searched: if nothing comes back, say the chat is not open rather than that it does not exist.

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": {
      "query": "<query>"
    },
    "name": "whatsapp-find-chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesA contact's name, part of a phone number, or words from the last message.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds real behavioral context: a hard cap of ten results, a search scope limited to open chats plus exact full-number lookup, and how to interpret an empty result. It does not describe the returned chat object or its identifiers, which matters for chaining into open-chat calls.

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 tight sentences, front-loaded with the core behavior and result limit, then the exception for full phone numbers, then the interpretation rule for empty results. Nothing is redundant.

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 one-parameter read tool it covers scope, result cap, and the notable edge case that closed chats are not searched. The remaining gap is what a match looks like (chat identifiers/fields) for an agent that wants to act on a result, but with no output schema that is a minor omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the single query parameter is already documented. The description still adds value by clarifying that a full phone number triggers a direct lookup that can reach closed chats, which the schema text alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ('Finds open chats') plus the matching keys (contact name, phone digits, last-message words). The explicit 'open chats' scoping meaningfully separates it from the list_* siblings, though no sibling is named directly.

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 conditions: use it for open-chat lookup, a full phone number also reaches closed chats, and if nothing returns the agent should report the chat as not open rather than nonexistent. It does not explicitly route the agent against whatsapp-list-chats or whatsapp-open-chat, so the alternative-selection guidance is implicit rather than stated.

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.