Skip to main content
Glama

Turbo Notify: WhatsApp for AI agents

List the messages of a WhatsApp number

list_messages
Read-onlyIdempotent

List messages for one number, newest first, received and sent.

Each item says who it is from and to, which number it belongs to, its direction, content_type, origin, a short preview, at, status and content_expired. Mentions, transcription and full media detail are only on get_message, so fetch the one message you care about rather than paging for detail.

To read a group, find its grp_ id with list_groups and pass it as group_id. contact_id returns what that contact sent or received, which in a group includes what they said there. direction keeps only inbound or outbound. Filters combine: group_id with contact_id answers what one person said in one group.

Ids belong to one number, so use the same number_alias you got them from: an id from another number answers not found. For the next page, pass back the cursor from the previous response together with the same filters.

Content older than the account's retention window (get_usage gives it) comes back with preview empty and content_expired true. The message, its sender and its group stay listed for 12 months.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many items to return, 1-200. Defaults to 50.
cursorNoOpaque cursor for the next page. Pass back the `cursor` from the previous response, with the same filters; omit it for the first page.
group_idNoOnly the messages of one group (`grp_…`, from `list_groups`). The group must be one of this number's: an id from another number answers not found. Can be combined with `contact_id`.
directionNoOnly messages the number received (`inbound`) or sent (`outbound`). Absent means both.
contact_idNoOnly the messages this contact sent or received (`ct_…`, from `list_contacts`). In a group that includes what the contact said there. The contact must be one of this number's: an id from another number answers not found. With `group_id` too, you get what that contact said in that group.
number_aliasNoWhich of the organization's WhatsApp numbers this acts on: `main`, the alias of an extra number, or the number's `id` (`num_…`), which stays the same when the alias is renamed. Call `list_numbers` to see them. Defaults to the main number.main

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds behavior they cannot express: retention-window effects (empty `preview` with `content_expired` true, messages still listed 12 months), cross-number id rejection ('an id from another number answers not found'), and cursor pagination requiring identical filters. These are exactly the operational traits an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the `get_message` alternative, then filters, then edge cases, then pagination — a sensible information hierarchy. It loses a point for restating group/contact filter behavior already spelled out in the schema descriptions, which adds length without new information.

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?

Despite six parameters and a real output schema, the description covers anything ambiguous: id scoping to one number, filter composition, cursor reuse, and expired-content semantics. Nothing an agent needs to call this correctly or interpret a sparse item 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?

Schema coverage is 100%, so the baseline is 3. The description restates the filter combination semantics and the same-number constraint that the schema properties already document, adding little new per-parameter meaning beyond the ordering guarantee ('newest first') it never maps to a 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?

Opens with a specific verb and resource plus ordering and scope: 'List messages for one number, newest first, received and sent.' It then explicitly separates itself from `get_message` for mentions, transcription and full media detail, so an agent can pick between the two without opening either schema.

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?

Gives concrete when-to-use branches: read a group by finding its `grp_` id via `list_groups`, use `contact_id` for a person's traffic, `direction` to narrow to inbound or outbound, and combine filters for 'what one person said in one group.' It also names the alternative `get_message` for detail instead of paging, which is real routing guidance.

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.