Skip to main content
Glama

List incoming email events

list_email_events
Read-onlyIdempotent

Browse incoming email (sender, subject, time) when the user asks what arrived or who wrote.

    Requires email:read. Returns events with message IDs, sender/subject metadata (security_flags when a
    subject addresses AI assistants) and legacy decisions,
    oldest first with next_cursor, or newest first with next_before when newest_first is true. Use
    get_email_context for a listed event's body. For recurring monitoring use claim_email_batch instead:
    this listing does not save progress, and a recorded legacy decision does not mean this connection
    has processed the email. A daily_check_suggestion, when present, asks you to offer the owner a daily
    scheduled check once after answering.
    

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_email_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoExclusive event cursor, zero or greater. Only events newer than it are listed. In oldest-first order pass next_cursor from the previous page; 0 starts at the oldest retained event.
limitNoMaximum number of events to return, from 1 to 100; default 50.
beforeNoWith newest_first: exclusive upper cursor; pass next_before from the previous page. 0 starts at the newest event.
newest_firstNoList the most recent email first, for questions like 'what came in today?' or 'did X write?'. Page further back with next_before.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / after / description
      Previous value: -"Exclusive event cursor, zero or greater. Use next_cursor from the previous page; 0 starts at the oldest retained event."New value: +"Exclusive event cursor, zero or greater. Only events newer than it are listed. In oldest-first order pass next_cursor from the previous page; 0 starts at the oldest retained event."
    • addedInput schema / properties / before
      Added value: +{
      +  "default": 0,
      +  "description": "With newest_first: exclusive upper cursor; pass next_before from the previous page. 0 starts at the newest event.",
      +  "title": "Before",
      +  "type": "integer"
      +}
    • addedInput schema / properties / newest_first
      Added value: +{
      +  "default": false,
      +  "description": "List the most recent email first, for questions like 'what came in today?' or 'did X write?'. Page further back with next_before.",
      +  "title": "Newest First",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / after / description
      Added value: +"Exclusive event cursor, zero or greater. Use next_cursor from the previous page; 0 starts at the oldest retained event."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of events to return, from 1 to 100; default 50."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it is a safe idempotent read; the description adds the auth scope (email:read), the returned metadata including security_flags, the ordering and cursor behavior, the non-persistence caveat, and the one-time daily_check_suggestion obligation. Those are exactly the behavioral facts an agent cannot get 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?

Purpose and trigger are front-loaded in the first sentence, and the caveats about progress not being saved and legacy decisions each carry real weight. The middle sentence is dense with parenthetical clauses and could be split for scanability, but nothing is genuinely redundant.

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?

With no output schema, the description correctly compensates by naming what comes back (message IDs, sender/subject, security_flags, legacy decisions, next_cursor/next_before). Prerequisites, paging model and sibling alternatives are all covered, leaving nothing an agent needs to call it 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 coverage is 100% and each parameter already documents cursors, limits and newest_first ordering in detail. The description's mention of 'oldest first with next_cursor, or newest first with next_before when newest_first is true' largely restates that, so the baseline of 3 applies.

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 ('Browse incoming email') plus the concrete fields returned (sender, subject, time) and the user intent that triggers it ('what arrived or who wrote'). It is immediately distinguishable from get_email_context (body retrieval) and claim_email_batch (recurring monitoring), which are both named.

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

Usage Guidelines5/5

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

Gives explicit routing rules: use get_email_context for a listed event's body, and use claim_email_batch for recurring monitoring because this listing does not persist progress. It also flags the false-positive case where a legacy decision does not mean the connection processed the email, which prevents a real misuse.

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.