Skip to main content
Glama
gmail-reader-mcp

gmail-reader-mcp

by jgimitola

list_emails

List Gmail emails by label, newest first, and narrow results with Gmail search queries. Returns IDs, subjects, senders, dates, flags, snippets, and paging tokens for next pages.

Instructions

List emails in a Gmail label (default INBOX), newest first, optionally narrowed with a Gmail search query. Returns IDs, thread IDs, subject, sender, date, unread/attachment flags, and a snippet. Use pageToken to page through results.

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

Input Schema

NameRequiredDescriptionDefault
labelNoLabel ID to list. System labels: INBOX, SENT, DRAFT, SPAM, TRASH, STARRED, IMPORTANT, UNREAD, CATEGORY_PERSONAL, CATEGORY_SOCIAL, CATEGORY_PROMOTIONS, CATEGORY_UPDATES, CATEGORY_FORUMS. For user labels use the ID from list_labels. Pass an empty string for all mail.INBOX
queryNoOptional Gmail search query to narrow results, e.g. "is:unread", "from:someone@example.com", "after:2024/01/01 before:2024/02/01", "has:attachment".
pageTokenNoToken from a previous response ("nextPageToken") to fetch the next page
maxResultsNoNumber of emails to return (max 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does useful work: it states the default label (INBOX), the ordering (newest first), the exact fields returned, and the pagination mechanism via nextPageToken from the schema. It omits auth/permission requirements and failure behavior, and never explicitly labels the operation as read-only, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the core action and scope, then return contents, then pagination. No filler and no redundant restatement of the tool name.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by enumerating the returned fields and snippet. Pagination and defaults are covered, but it does not clarify how label and query interact when both are supplied, or whether an empty result is distinguishable from an error.

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%, so all four parameters are already documented with defaults, bounds, and enum-like system labels. The description only restates the query-narrowing and pageToken behavior, adding no format or combination semantics beyond the schema. Baseline 3 is appropriate.

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 ("List emails") plus scope (Gmail label, default INBOX, newest first, optional query). An agent immediately knows what it fetches, but nothing distinguishes it from sibling tools like search_emails or get_emails, so it falls short of a 5.

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?

Implied usage is clear: use it to enumerate mail in a label, optionally narrowing with a query, and use pageToken for more pages. However, it never says when to prefer search_emails or get_emails over this, so an agent facing both list and search must infer the boundary.

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