Skip to main content
Glama

list_messages

Read-onlyIdempotent

Read a chat's messages, oldest first. Returns the most recent limit messages; page back through older ones with starting_after.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoDefault 50.
chat_idYesA chat id (aichat_...). A run id works too — it resolves to that run's chat.
ending_beforeNoReturn the messages older than this id — the first id of the previous page. Paging walks backwards through history, since the default page is the tail.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
objectYes
has_moreYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so the safety profile is covered. The description usefully adds ordering semantics and that the default page is the tail of history, but it omits any note on truncation, page-size caps, or what a page boundary looks like.

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?

Two tight sentences with zero filler, and the core behavior (chat's messages, oldest first) is front-loaded before the paging detail. Only the dangling, incorrect parameter reference detracts.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 values need not be spelled out. For a 3-param paginated list tool the description covers ordering and paging direction adequately, but the incorrect cursor name leaves the agent without a correct paging recipe, which is the one thing this description needed to nail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents all three parameters with default, bounds, and id-resolution details, so the baseline would be 3. Instead the description actively misleads: it tells the agent to page with 'starting_after', a parameter that does not exist in the schema, while the real cursor is 'ending_before'.

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 verb+resource ('Read a chat's messages') and adds ordering ('oldest first') plus result scope ('most recent limit messages'). It is distinguishable from get_chat and list_chats by implication, but it never names a sibling explicitly.

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?

It conveys paging intent ('page back through older ones') and the default tail-page behavior, which is genuinely useful context. However, it gives no when-to-use vs. alternatives guidance (e.g., get_chat for metadata, list_chats for discovery), and the paging instruction references a parameter that does not exist.

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