Skip to main content
Glama

List messages

list_messages
Read-onlyIdempotent

Retrieve messages from a Google Chat space or thread with sender, text, timestamps, attachments, and reactions. Filter by creation time or thread, paginate, and include deleted messages.

Instructions

Lists messages in a space (including messages from blocked members and spaces): name, text, sender, createTime, thread.name, attachment metadata and emoji reaction summaries. Filters are the API's only two: created_after (createTime) and thread_name (one thread's messages) — there is no text search, match client-side. order defaults to ascending by createTime; show_deleted includes tombstones of deleted messages. Poll incrementally with created_after + page_token instead of re-listing history. Requires the chat.messages.readonly (or chat.messages) scope and works only with user authentication.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderNoSort by createTime (default asc).
spaceYesThe space — "spaces/<id>" or the bare id from list_spaces / a Chat URL (chat.google.com/room/<id>).
page_sizeNoMax messages per page (1..1000; default 25).
page_tokenNonextPageToken from the previous page.
thread_nameNoOnly messages in this thread (thread.name from a message).
show_deletedNoInclude deleted messages (deletion metadata only).
created_afterNoOnly messages created after this RFC3339 UTC timestamp, e.g. 2026-08-01T00:00:00Z.
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses meaningful behavior: messages from blocked members/spaces are included, show_deleted includes tombstones, and the tool works only with user authentication. This adds context about what the tool returns and its access constraints, well beyond what annotations alone convey.

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?

The description is compact and information-dense, with no filler. Core purpose is front-loaded, followed by filters, ordering, deletion behavior, polling guidance, and authentication requirements, with each sentence contributing distinct and useful 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?

With 7 parameters and no output schema, the description compensates well by listing the returned fields, filter semantics, pagination strategy, deletion behavior, and auth constraints. An agent has enough context to decide when to call this tool and to construct a correct request.

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 description coverage is 100%, so the schema already documents each parameter. The description adds value by explaining output fields, the default ordering, the meaning of created_after for incremental polling, and that text filtering must happen client-side, though a minor ambiguity remains around calling only created_after and thread_name 'filters' when show_deleted also filters.

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?

The description opens with a specific verb and resource: 'Lists messages in a space', and further clarifies scope by including messages from blocked members and spaces and enumerating returned fields. This clearly distinguishes the tool from siblings like get_message (single message), list_spaces, and send_message.

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?

The description provides clear operational guidance: there is no text search, clients must match client-side, and users should poll incrementally with created_after + page_token. It also states authentication requirements and scope prerequisites, though it does not explicitly name alternative tools for text search or single-message retrieval.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-google-chat'

If you have feedback or need assistance with the MCP directory API, please join our Discord server