Skip to main content
Glama

Read messages

read_messages
Read-only

Messages in a thread, oldest first. Pass after=<message_id> for new ones only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "thread_id": "<thread_id>"
    },
    "name": "read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
thread_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds the useful behavioral fact that results are ordered oldest first and that 'after' is exclusive of the given id, but it omits pagination/result-size limits, whether messages from all participants are returned, and any auth requirements — relevant gaps for an open-world read 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?

Two compact sentences with the primary behavior first and the optional-parameter hint second; nothing is wasted. The terseness borders on under-specification, but no wording is filler.

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?

For a simple two-parameter read tool with annotations covering safety and no output schema to explain, the description covers the essentials of what is returned and how to page forward. It is still thin on return shape and limits, which an agent needs to avoid over-fetching or misinterpreting an empty result.

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 0%, so the description must carry the burden, and it does explain the non-obvious 'after' parameter as a message_id cursor returning only newer messages. The remaining parameter, thread_id, is not described, but its meaning is evident from the resource name and the required-field constraint.

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 phrase "Messages in a thread, oldest first" names the resource and the ordering, so an agent knows it fetches thread history rather than sending or searching messages. It never states a verb (list/read) and does not name a sibling such as message_worker to differentiate a read from a write, so it stops short of a 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?

"Pass after=<message_id> for new ones only" gives clear usage guidance for the incremental-polling case, which is the main alternative mode of calling this tool. However, it says nothing about when to use this tool at all versus siblings, nor any preconditions (e.g. needing to be a participant in the thread).

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