Skip to main content
Glama

Read role messages

read_messages
Read-onlyIdempotent

A role's mailbox, oldest first; unread only by default. Messages stay unread until mark_messages_read. Also returns notes changed since this role last called it (notes_changed) and the pinned 'always' notes (always_notes).

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": {
      "role": "<role>"
    },
    "name": "read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
peekNoDon't move the notes cursor or return notes_changed (checking a role you aren't).
roleYesRole name (list_roles).
limitNoDefault 50.
after_idNo
project_idNo
unread_onlyNoDefault true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / after_id / description
      Removed value: -"Only messages after this id."
    • changedInput schema / properties / limit / description
      Previous value: -"How many (default 50)."New value: +"Default 50."
    • changedInput schema / properties / peek / description
      Previous value: -"Just look: don't move this role's notes cursor and leave notes_changed out. For checking on a role you aren't acting as."New value: +"Don't move the notes cursor or return notes_changed (checking a role you aren't)."
    • removedInput schema / properties / project_id / description
      Removed value: -"Workspace to work in (from list_projects). Leave out for the default one."
    • changedInput schema / properties / role / description
      Previous value: -"The role's name (from list_roles), e.g. 'manager'."New value: +"Role name (list_roles)."
    • changedInput schema / properties / unread_only / description
      Previous value: -"Only unread ones (default true)."New value: +"Default true."
  2. First observed

TDQS

B3.4/5.0
Behavior2/5

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

The description adds real behavioral detail (ordering, unread semantics, cursor movement, extra note payloads), but that detail conflicts with the annotations: it states the result depends on 'since this role last called it' and that the notes cursor moves, which contradicts idempotentHint=true and strains readOnlyHint=true. The contradiction is partial (messages themselves are not marked read) rather than a wholesale misstatement, so 2 rather than 1.

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?

Three dense clauses with no filler: reading behavior first, then the side-effect caveat, then the extra return streams. The semicolon-chained phrasing is terse but front-loads the two facts an agent most needs.

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

Completeness3/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 name the returned streams and their semantics, which covers the most important return behavior. It stops short of describing the message record shape, paging via after_id, or how project_id scopes results, which matters for a 6-parameter read tool.

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 67% and the description reinforces unread_only's default and peek's cursor effect, but after_id and project_id are undocumented in both places, and the 'oldest first' ordering only hints at after_id's paging role. Reasonable for the covered parameters, but it does not compensate for the two blind spots.

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 states the resource and its scope clearly: a role's mailbox, oldest-first, unread-only by default, plus two note streams (notes_changed, always_notes). It also distinguishes itself from mark_messages_read by noting messages stay unread until that sibling is called, so an agent can pick correctly between them.

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 concrete usage conditions: default is unread-only, and peek is for 'checking a role you aren't' because it avoids moving the notes cursor. What's missing is when to pass unread_only=false, after_id, or project_id versus other listing tools, so a few invocation decisions are left to the schema.

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.