Skip to main content
Glama

read

Marks inbox messages as acknowledged using specific IDs, a topic channel, or all messages; returns the count of newly updated items.

Instructions

Explicitly mark messages as read (they are never auto-read). Pass specific message_ids, or a topic to clear a channel, or all=True to clear your whole inbox. Returns how many were newly marked.

ids (and id for a single message) are accepted as aliases for message_ids, since inbox returns each item's id — a mismatched name used to silently no-op (issue #23).

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

Input Schema

NameRequiredDescriptionDefault
idNo
allNo
idsNo
topicNo
message_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly succeeds: it discloses that reads are never automatic, that the return value is a count of *newly* marked items (implying idempotency), and that aliases exist because of a past silent no-op bug. It omits permission/auth requirements and whether marking can be undone.

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 action and the selector options, then a short alias note. The issue #23 parenthetical is slightly more history than an invoking agent needs, but it is brief and justifies the redundant parameters.

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?

For a 5-parameter tool with no annotations and no output schema, everything essential is present: what it does, the three selection paths, the alias mapping, and what the return value means. An agent can call it correctly on the first attempt.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 define the five parameters, and it does: `message_ids`, its `ids` array alias, the singular `id` alias, `topic`, and `all`. It even explains *why* the aliases exist and ties `id` back to the field returned by `inbox`, which is meaning the bare schema cannot convey.

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 ('Explicitly mark messages as read') plus the selection modes (message_ids, topic, all). It also differentiates from the sibling `inbox` by noting that `inbox` returns items you then feed back as ids, so an agent can pick the right tool without opening either schema.

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 three concrete invocation patterns ('Pass specific `message_ids`, or a `topic` to clear a channel, or all=True to clear your whole inbox') and the critical context that messages are never auto-read, implying this call is required to make progress. It stops short of stating precedence when multiple selectors are supplied or warning against combining them, so it is clear but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.