Skip to main content
Glama

List messages

list_messages
Read-onlyIdempotent

Individual messages across every thread, newest first. Pass with_email to read one conversation (which returns oldest-first, so it reads in order). Voice notes, photos, videos and files come back as attachment with a description — their text is never message content. A voice note may carry attachment.transcript when the business had voice messages written out: it is AUTOMATIC and can mishear a word, so quote it as what the recording seems to say, never as the person's exact words; no transcript means nobody had it written out, not that the note was silent. Messages the user deleted from their own view are not returned.

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
qNoOnly text messages containing this phrase.
typeNoFilter by message type: text, image, audio, video, file, system.
limitNoMaximum rows to return (1-200, default 50).
sinceNoISO timestamp — only messages after this.
untilNoISO timestamp — only messages before this.
offsetNoRows to skip, for paging.
threadNoThread name, usually the unit — see `thread` on list_conversations.
chat_typeNoe.g. tenant, service, owner, system.
with_emailNoOnly messages exchanged with this person.
unread_onlyNoOnly messages the user has not read.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
countYesHow many rows are in `results`.
resultsYesThe rows.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description goes further: it explains that attachments return as `attachment` with description text, that transcript presence is conditional and machine-generated, and that user-deleted messages are excluded. It still doesn't mention pagination limits or result-size behavior, which matters for a 10-filter list tool.

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-loads the scope and ordering in the first sentence, then layers attachment caveats and deleted-message behavior. The transcript sentence is long with multiple parenthetical and semicolon clauses, but each clause carries distinct semantics rather than padding.

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?

An output schema exists, so return shape needn't be documented; the description instead covers the non-obvious edge cases an agent would get wrong — media-as-attachment, unreliable transcripts, ordering reversal with with_email, and deletion visibility. That is sufficient for a read-only list tool with fully documented parameters.

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 baseline is 3, but the description adds real meaning: with_email not only filters to one person but flips the sort order to oldest-first, a behavior the schema does not convey. It also clarifies that `type` distinctions mean media never arrives as text content, which reframes how attachment rows should be interpreted.

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?

States a specific resource and scope: individual messages across every thread, ordered newest first, which implicitly contrasts with the conversation-level listing done by list_conversations. It never names a sibling outright (e.g. search_messages or list_conversations), so differentiation is inferable rather than explicit.

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?

Gives one concrete usage pattern — pass with_email to read a single conversation, and notes that path returns oldest-first. There is no stated when-not-to-use, no mention of when search_messages is preferable, and no guidance on combining filters like since/until with paging.

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