Skip to main content
Glama

Read inbox

read_inbox

Fetch recent messages across connected accounts and chats, newest first; filter by channel, connection, or chat and page with before. Set mark_read false to inspect without marking read.

Instructions

Read recent messages across all your connected accounts, newest first (each says which account it is on) — from every chat except ones the account holder ignored. Filter by channel, connection, or one chat (chat_id from list_chats). Page back with before. A message with media carries a photo, video, voice note, document or sticker (its text is the caption, or a placeholder like "[photo]"): call get_media to see it. reactions lists who reacted with what. new_since_last_read says how much came in from the other side since these chats were last read (messages and reactions, per chat); new messages and reactions carry new: true, and new_reactions lists every new reaction with the message it's on (even one on an old message not shown). Reading marks what it shows as read, for every agent on the account; pass mark_read: false to just look. Paging back with before never marks anything. Reading that marks read also sends read receipts on WhatsApp by default (blue ticks, if that number's WhatsApp has them on; the account holder can turn this off per number in Parley): pass read_receipts: false to read without telling the sender. Looking (mark_read: false) or paging back sends none unless read_receipts is true.

Input Schema

NameRequiredDescriptionDefault
limitNoHow many messages (default 50).
beforeNoOnly messages sent before this ISO time — pass the `at` of the oldest message you have to page back.
channelNoOnly this channel, e.g. "whatsapp". Omit for every connected channel.
chat_idNoOnly this chat (a chat_id from list_chats or from an earlier message).
mark_readNoMark what this returns as read (default true). Pass false to look without changing what counts as new.
connection_idNoOnly this account: a connection id from list_connections, or its number (e.g. "+65 9136 3557").
read_receiptsNoAlso mark the messages this returns read on WhatsApp itself, as opening the chat on the phone would. On by default whenever this marks them read (each number's setting in Parley); pass false to read without telling the sender. The senders see blue ticks only if that number's WhatsApp has read receipts on; otherwise only its own devices mark the chat read. On a number whose read receipts the account holder turned off in Parley, none are sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so thoroughly: reading marks messages read 'for every agent on the account', paging with `before` never marks anything, and read receipts are sent on WhatsApp by default with per-number settings and an explicit opt-out. It also explains what the response contains (media, reactions, new_since_last_read, new/new_reactions flags), which an agent cannot infer from structured fields.

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 ordering, and nearly every clause carries non-obvious information. It is a single dense block with heavy parentheticals and em-dash asides, and the read-receipt opt-out is restated in both the description and the schema, which slightly harms scannability.

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 7-parameter, side-effecting read tool with no annotations and no output schema, the description covers both the inputs' interaction and the shape of the returned data (account, media, reactions, new flags, new_reactions). An agent has enough to invoke it correctly and to anticipate the read-state and receipt side effects.

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 baseline is 3, but the description adds cross-parameter meaning the schema does not: how `before` interacts with mark_read (paging never marks), and how mark_read:false interacts with read_receipts (none sent unless read_receipts is true). The remaining parameters (limit, channel, connection_id, chat_id) are left essentially to the schema, which documents them well.

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 ('Read recent messages across all your connected accounts, newest first') plus the ordering and per-message account attribution. It is clearly distinguishable from siblings like list_chats (which supplies chat_id), get_media (for media payloads), and search, none of which read a chronological inbox.

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 routing: filter by channel/connection/chat, 'chat_id from list_chats', page back with `before`, and 'call get_media to see it' when a message has media. It also explains the mark_read:false path for a non-mutating look. The one gap is that it never contrasts itself with the sibling `search` tool for finding older or specific content rather than paging the inbox.

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