Skip to main content
Glama

List DM messages

list_messages
Read-onlyIdempotent

DM messages of a brand, newest first by default, with cursor paging: all conversations within from/to (default the last 30 days), or the full history of one conversation with conversationId. updatedSince returns the messages sent or changed since then, ordered by updatedAt, for incremental sync. Each row has direction, sender (contact, team member, automation or AI), type, text, media, send, delivery, read, edit and delete times, status, the automation run and step that sent it, the comment a private reply answered, tracked links and whether it is excluded from training. Reading never marks messages as read.

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": {
      "brand": "<brand>"
    },
    "name": "list_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOnly messages sent at or before this time; a plain date covers the whole day.
fromNoOnly messages sent at or after this time. Without conversationId it defaults to 30 days before "to".
brandYes
limitNo
orderNodesc
cursorNo
timeZoneNo
updatedSinceNoIncremental sync: only messages sent or changed (delivered, read, edited, deleted) at or after this time, ordered by updatedAt. The newest updatedAt of a page is the starting point of the next sync. Without conversationId, from/to then only narrow when given.
conversationIdNoOnly messages of this conversation, its whole history unless from/to narrow it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With readOnlyHint and idempotentHint already declared, the description still adds real value: it discloses that reading never marks messages as read (a genuine side-effect concern for a messaging tool), states default ordering and the 30-day default window, and enumerates the row fields returned. That is substantial disclosure beyond the annotations.

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?

Dense but front-loaded, leading with what is returned and default ordering before the mode variants. The single long paragraph of return-field enumeration is information-bearing rather than filler, though it could be broken up for scanability.

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?

No output schema exists, and the description compensates by enumerating the row shape (direction, sender, times, status, automation run/step, tracked links, training exclusion). Given 9 parameters, the remaining gap is the unexplained limit/timeZone/cursor semantics, which is minor.

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 only 44%, so the description must compensate, and it does for the hard cases: from/to defaults and narrowing behavior, conversationId scoping, and the updatedSince sync contract (ordered by updatedAt, newest updatedAt starts the next page). It leaves limit, timeZone, and cursor undocumented beyond the schema.

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 resource (DM messages of a brand) with concrete retrieval modes: newest-first cursor paging, conversation-scoped history, or incremental sync via updatedSince. An agent can distinguish this from siblings like list_conversations or list_comments without opening the schema.

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?

Explicitly describes three usage modes and the selector for each: from/to window (defaulting to 30 days), conversationId for full history, updatedSince for incremental sync. It never states when NOT to use it or names an alternative tool, so it stops short of a 5.

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.

Resources