Skip to main content
Glama

chat_read

Read-only

Returns chat messages from a cursor, oldest to newest; without a cursor - the latest ones. hasMore tells whether more messages exist in the requested direction; an after cursor returns newer messages, such as replies to a sent one. A task chat without messages yet returns an empty page. Each attachment has attachToken, which can be inserted into a spec / result as is. chatType is the chat type: direct for a direct chat, entity for the chat of a task, bug, feature or product (entityType), group for the rest; quotes and mentions follow it.

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": {
      "chatID": "<chatID>"
    },
    "name": "chat_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoThe after cursor from a response: newer messages.
limitNoMessages to return, 1-100 (default 30)
beforeNoThe before cursor from a response: older messages.
chatIDYesChat ID; for a task's chat - the task ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / after / description
      Previous value: -"Read messages newer than chat.after."New value: +"The after cursor from a response: newer messages."
    • changedInput schema / properties / before / description
      Previous value: -"Read messages older than chat.before."New value: +"The before cursor from a response: older messages."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/destructiveHint=false, and the description goes well beyond them: cursor direction semantics, hasMore signaling, the empty-page case for a task chat with no messages, and the attachToken reuse rule. These are non-obvious behaviors an agent could not infer from the schema.

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?

The core read behavior and cursor semantics are front-loaded, then secondary facts follow. It is dense and slightly run-on in the trailing chatType clause, but nearly every sentence carries actionable information.

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 carries the burden of explaining the returned shape (hasMore, attachToken, chatType) and does so. Minor gaps remain, such as ordering within a 'before' page and failure behavior on an invalid chatID.

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 coverage is 100% and each parameter (after, before, limit, chatID) is already documented in the schema, including cursor direction and the ms-vs-seconds caveat. The description reinforces directionality but adds no syntax or format detail the schema lacks, so baseline 3 applies.

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?

States a specific verb and resource ('Returns chat messages from a cursor') plus the default scoping behavior when no cursor is supplied. It is immediately distinguishable from write-side siblings like chat_send and chat_message_update, which is what an agent needs to pick the read tool.

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?

Gives concrete directional guidance: no cursor means latest messages, an 'after' cursor returns newer messages such as replies to a message you just sent. That is real when-to-use signal, but it never explicitly contrasts with the other chat-side read sibling (chat_question_inbox) or states exclusions.

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