Skip to main content
Glama
gmail-mcp

gmail-mcp

by cart1984

mail_list

Read-only

Lists recent Gmail messages by label, since date, or unread-only status, so you can review inbox, sent, starred, spam, trash, categories, or custom labels.

Instructions

List the newest messages with a label: INBOX (default), SENT, DRAFT, STARRED, SPAM, TRASH, a category such as CATEGORY_PROMOTIONS, or one of your labels by name or id (see mail_labels). since is an ISO date or date-time such as 2026-11-01, in the server's time zone unless it has an offset.

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

Input Schema

NameRequiredDescriptionDefault
topNo
labelNoINBOX
sinceNo
unread_onlyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavior the annotations do not: newest-first ordering and the time-zone rule for `since` (server zone unless an offset is supplied). It stays silent on pagination behavior and on what `top` defaults to, which limits it to a 3.

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?

One tight passage with the resource and ordering front-loaded, then label values, then the date-format caveat. Nothing repetitive; the indented line break is cosmetic noise but not costly.

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?

An output schema exists, so return-value explanation is rightly omitted. For a four-parameter tool where two parameters (`top`, `unread_only`) are undocumented in both schema and description, the definition leaves an agent guessing on paging and filtering.

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 0%, so the description carries the full burden, and it does well on the two tricky params: `label` gets its full accepted vocabulary plus name-or-id form, and `since` gets format and time-zone semantics. `top` and `unread_only` are not mentioned at all, so a small gap remains.

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?

Specific verb + resource: "List the newest messages with a label", and it enumerates the exact label vocabulary (INBOX, SENT, DRAFT, STARRED, SPAM, TRASH, categories, custom labels). It does not explicitly differentiate itself from mail_search, which is the nearest sibling an agent could confuse it with.

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?

Default behavior is stated (INBOX when no label, 15 results implied by schema) and it points to mail_labels for discovering label names/ids. There is no explicit when-to-use-this-vs-mail_search guidance or statement of when this listing is the wrong choice.

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