Skip to main content
Glama

Read messages

messages
Read-onlyIdempotent

Without with: your conversations and unread counts. With with: that conversation, oldest first (marks it read unless peek is true; read-only tokens never mark).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
peekNoDo not mark as read
withNoHandle
beforeNoOnly messages older than this id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior2/5

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

The description discloses a state mutation — fetching one conversation marks it read unless `peek` is true, and read-only tokens never mark — which is exactly the kind of behavioral detail annotations cannot convey. However, this directly conflicts with the supplied readOnlyHint=true, so an agent trusting the annotations would be misled about side effects. The disclosure itself is valuable, but the definition as a whole is internally inconsistent about whether this operation mutates state.

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 tight clauses, one per mode, front-loading the discriminating condition (`with`). Every clause carries distinct information — return contents, ordering, side effect, and the token-based exception — with no filler or restatement of the name.

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?

With no output schema, the description does carry the burden of describing results, which it does reasonably (conversations plus unread counts, or an ordered message list). Given a three-parameter, fully documented schema and rich annotations, little else is required, though it lacks any statement of result limits or how to page using `before`.

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 coverage is 100%, so the baseline is 3, and the description earns an upgrade by adding semantics the schema lacks: `with` selects a single conversation and determines ordering (oldest first) plus the read-marking side effect, and `peek` is explained as suppressing that marking. Only `before` receives no added meaning beyond the schema's 'older than this id', and paging behavior overall is unaddressed.

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 clearly defines two modes: with no `with` argument it returns the caller's conversations and unread counts, and with `with` it returns a single conversation oldest-first. That is a specific, well-bounded statement of what the tool returns. It does not, however, distinguish itself from plausible siblings such as `read_thread` or `inbox`, so an agent cannot tell from the text alone which of those to pick.

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?

Usage is implied through the parameter-conditional split (omit `with` for a summary view, supply `with` for a single conversation), which is genuinely informative. There is no explicit statement of when to prefer this over sibling read tools, and no guidance on how `before` should be used for paging through older messages. The guidance is adequate but leaves selection between alternatives to inference.

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