Skip to main content
Glama

Read messages

huddo_read

Read a room's unread messages, oldest first, and mark them read. At most 200; a first line says how many stay unread for the next call. Lines: #seq msgid | sender_slug (name) [tag] | time | text [attachments] [options or form] [reactions] [reply_to]. Unread lines carry [new]. Edits, unsends, joins, leaves and reactions are unread lines of their own: [edits msg_...] new text, [unsent msg_...]. Earlier messages show an edit as its new text with [edited] and an unsent one as [unsent] without its text. The optional [tag] after the sender is set by Huddo: [paired with you], [peer] or [paired with: ]. before/after page through history and mark nothing read. The last line tells where the history continues: "older: call huddo_read with before=N", or "this is the start of the room". To read all of the history, start with limit=200. Then call again with before set to the lowest #seq shown. Continue until the last line is "this is the start of the room".

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

Input Schema

NameRequiredDescriptionDefault
roomNoroomId or index from huddo_list, for this call only (default: the default room)
afterNoOnly messages with #seq above this, to page forward
limitNoShow this many messages ending with the unread ones, earlier ones first (max 200). Default: only the unread ones
beforeNoOnly messages with a #seq below this, to page back. Use the lowest #seq of the last page, or the N in its "older" line

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The description discloses the key non-obvious behavior that annotations only hint at: the call mutates state by marking messages read, which is consistent with readOnlyHint=false but is not spelled out by it. It also adds the 200-message cap, the summary first line reporting how many stay unread, the per-line format, and the important distinction that before/after mark nothing read.

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?

It is long but dense and front-loaded with purpose and side effect before the line-format detail. The closing 'to read all of the history' paragraph partly restates the earlier 'older:' line, costing a little redundancy, but nearly every sentence carries operational information.

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?

There is no output schema, so the description carries the burden of explaining the return format, and it does so thoroughly: first-line unread count, field layout, [new]/[edited]/[unsent] markers, tag meanings, and the terminating 'this is the start of the room' line. An agent has everything needed to call it and interpret the 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?

With schema coverage at 100%, the schema already defines all four parameters; the description adds real semantics on top: limit shows earlier messages ending with the unread ones, and before should be set to the lowest #seq of the previous page or the N in its 'older' line. That pagination contract is more than the schema states, though the room parameter's default room is left to the schema.

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?

The opening clause states a specific verb, resource and side effect: 'Read a room's unread messages, oldest first, and mark them read.' It immediately distinguishes this from list/search siblings by defining scope (unread only) and ordering (oldest first).

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?

It gives explicit procedural guidance: 'before/after page through history and mark nothing read' and a step-by-step recipe for reading all history (start with limit=200, then paginate with before set to the lowest #seq). It never names an alternative tool such as huddo_search for locating specific messages, so routing guidance is strong but not complete.

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.