Skip to main content
Glama

Read messages

message_read
Idempotent

Read a thread, newest first: a workspace's chat (workspaceId: its id or slug) or a task's thread (taskId), exactly one of the two. Every member of the workspace reads its chat, guests included; whoever reads a task reads its thread. Each message names its author: mine says it is from your own account, isCaller that it is from you; any other author was a member of the workspace when it wrote the message (account.former: true marks a deleted account). A deleted message stays as a marker at its position, with body null. Reading the chat's newest page marks it read for this agent key up to its newest message (workspace_list's unreadMessages and workspace_load's messages count from there); a page reached with cursor, and a task's thread, mark nothing. A page may hold fewer than limit messages when they are large (partial: true); while nextCursor is not null, call again with cursor: nextCursor for older ones. Answer with message_post.

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": "message_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNoOptional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters.
limitNoHow many messages, 1–100 (default 50), newest first.
cursorNonextCursor of the previous page: the messages before it.
taskIdNoThe task whose thread this is, by its id or the first 8 or more characters of it: whoever reads the task reads its thread. Name it or workspaceId, not both.
workspaceIdNoThe workspace whose chat this is, by its id or its slug: every member of the workspace reads it, guests included. Name it or taskId, not both.

Output Schema

NameRequiredDescriptionDefault
threadYes
partialYestrue when this reply was too large for one tool reply and kept only the newest messages that fit; nextCursor continues from the oldest one kept.
messagesYes
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / taskId / description
      Previous value: -"The task whose thread this is, by its id: whoever reads the task reads its thread. Name it or workspaceId, not both."New value: +"The task whose thread this is, by its id or the first 8 or more characters of it: whoever reads the task reads its thread. Name it or workspaceId, not both."
    • removedInput schema / properties / taskId / format
      Removed value: -"uuid"
    • addedInput schema / properties / taskId / maxLength
      Added value: +36
    • addedInput schema / properties / taskId / minLength
      Added value: +8
    • removedInput schema / properties / taskId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. Changed1 schema field changed
    • addedOutput schema / properties / messages / items / properties / author / properties / tokenrip
      Added value: +{
      +  "const": true,
      +  "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / why
      Added value: +{
      +  "description": "Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters.",
      +  "type": "string"
      +}
  4. Added

TDQS

A4.8/5.0
Behavior5/5

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

This is the strongest part: readOnlyHint=false is otherwise surprising for a "read" tool, and the description explains exactly why — reading the chat's newest page marks it read up to the newest message for this agent key, while cursor pages and task threads mark nothing. It also discloses partial pages (partial: true), the nextCursor loop, deleted-message markers with body null, and author attribution semantics (isCaller, account.former).

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?

Front-loaded with the core action and scope, and every sentence carries distinct information. It is a dense single block, though, and the pagination/marking rules would read better as separate sentences rather than semicolon-chained clauses.

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

Completeness5/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 shape needn't be described, and the description covers the remaining risk areas: pagination termination, partial pages, deleted-message representation, and the unread side effect. Nothing an agent needs to call this correctly is missing.

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; the description still adds meaning by tying cursor to the side-effect exemption and by framing workspaceId/taskId as an exclusive pair. It adds less than it could on limit/cursor mechanics, which the schema already spells out.

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?

"Read a thread, newest first" names the verb, the resource, and the ordering in one clause, then immediately splits the resource into the two mutually exclusive shapes (workspaceId chat vs taskId thread). An agent can distinguish this from message_post, message_update, or message_delete without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the selection rule explicitly ("exactly one of the two") and routes the agent to the follow-up action ("Answer with message_post"). It also states the when-not condition for the cursor path ("a page reached with cursor, and a task's thread, mark nothing"), which is the main way an agent could misuse this tool.

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.