Skip to main content
Glama

List recent messages

list_recent
Read-only

Lists recent messages from all connected sources in one newest-first list, each item with its source (mail, google_chat or telegram) and account. Mail: messages that arrived in the INBOX of every mailbox (unread only by default). Google Chat and Telegram: messages received in direct or group conversations and messages mentioning the user, with repliedAfter (false means the user has not replied yet) and a link. Covers the period since since (default: last 24 hours). source restricts to mail, chat (Google Chat), telegram or all (default). Unreachable sources are listed in failures. Does not mark anything as read.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of items across all sources (at most 50).
sinceNoStart date (ISO 8601). Defaults to 24 hours ago.
sourceNomail, chat (Google Chat), telegram, or all (default).all
unreadOnlyNoMail only: unread messages only (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld and non-destructive, so the safety profile is covered; the description still adds real context beyond that: per-source semantics (INBOX-only mail, mentions and DMs for chat/telegram), a `repliedAfter` signal, a per-item link, unreachable sources surfaced in `failures`, and an explicit 'does not mark anything as read'. It stops short of describing pagination or ordering ties beyond newest-first, which keeps it off the top mark.

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 headline behavior, then structured source-by-source, with the time window and filter defaults following. It is dense but readable; a few defaults are repeated from the schema, which is minor redundancy.

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 return-shape burden and does so: item fields (source, account, repliedAfter, link), cross-source ordering, and the `failures` list for unreachable sources. Combined with the annotations, an agent has everything needed to call this correctly.

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 description coverage is 100% and the descriptions already explain limit, since, source enum (including 'chat = Google Chat') and unreadOnly being mail-only. The description largely restates those defaults rather than adding syntax or edge-case meaning, so the baseline 3 applies.

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?

States a specific verb and resource ('Lists recent messages from all connected sources in one newest-first list') plus ordering, so an agent knows exactly what it returns. It implicitly contrasts with single-source siblings (list_recent_chat, list_recent_telegram) via the 'all connected sources' scope and the `source` filter, but never names them outright, so sibling differentiation is inferred rather than explicit.

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

Usage Guidelines3/5

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

The description establishes defaults and scope (last 24 hours, unread mail only, source=all), which implies when this aggregate view is appropriate. However, it never says when to prefer search_messages or the per-source listers, and gives no exclusions, so usage guidance is implied rather than stated.

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.

Resources