Skip to main content
Glama

Get thread messages

get_thread_messages
Read-only

Get the messages in one inbox thread (visitor), oldest first. Returns the most recent messages by default; use offset with has_older to page back through long threads.

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages per page (default 100, max 200).
offsetNoSkip this many of the most recent messages to page further back (default 0).
chatbot_idYesThe chatbot id.
visitor_idYesThe thread/visitor id (from list_inbox_threads).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds ordering behavior (oldest first), the default window (most recent messages), and how to page backwards, which is genuinely useful context beyond the annotations. It stops short of describing the return shape or page size limits.

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?

Two short sentences, front-loaded with what is returned and in what order, followed by the paging instruction. No filler and nothing an agent must wade through.

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?

For a read-only paginated list tool whose safety profile is carried by annotations and which has no output schema, the description covers ordering, default window, and paging adequately. The dangling reference to 'has_older' - a field the agent cannot resolve from the schema or a declared output - is the one real gap.

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 description coverage is 100%, so limit/offset/chatbot_id/visitor_id are already documented, and the description largely restates the offset/default-window behavior. It does add the relationship between offset and the undecorated 'has_older' value, but since has_older appears in neither the schema nor an output schema, that reference is ambiguous rather than clarifying.

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 and resource with scope: 'Get the messages in one inbox thread (visitor), oldest first.' It also names the ordering, which helps distinguish it from list_inbox_threads. It does not explicitly name a sibling alternative, so it falls short of 5.

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 paging guidance ('use offset with has_older to page back through long threads') but never states when to reach for this tool versus list_inbox_threads or reply_to_thread, nor any prerequisite such as needing a visitor_id sourced elsewhere. Usage is implied by the scoping to a single thread rather than explicitly framed.

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