Skip to main content
Glama

List messages

list_messages

Messages of one chat (or across all chats), newest first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatNoChat JID. Omit to list across all chats.
afterNoOnly after this time (YYYY-MM-DD or RFC3339).
limitNo
beforeNoOnly before this time (YYYY-MM-DD or RFC3339).
from_meNotrue = only own messages, false = only received.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It only reveals scope and ordering; it does not mention default limit, pagination, return shape, permissions, or how time/filter parameters affect results.

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?

The description is a single front-loaded sentence with no filler, stating scope and ordering efficiently. It is compact, though arguably too sparse for a tool with five optional parameters and no annotations.

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?

For a tool with five optional parameters, no annotations, no output schema, and relevant siblings, the description is incomplete. It leaves out return format, pagination defaults, and the distinction between simple listing and searching or contextual retrieval.

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 high at 80%, with descriptions for chat, after, before, and from_me, plus limit constraints. The description adds little beyond reinforcing the chat parameter, so the schema appropriately carries the parameter semantics.

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: list messages, scoped to one chat or all chats, with newest-first ordering. It is clear and distinguishable in intent, though it does not explicitly contrast with siblings like search_messages or get_message_context.

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

Usage Guidelines2/5

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

The tool's purpose is implied, but there is no guidance on when to choose this over search_messages, list_starred, or get_message_context. No exclusions, prerequisites, or alternative routing are provided.

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.