Skip to main content
Glama
gmail-mcp

gmail-mcp

gmail_list_inbox

Lists recent messages from your inbox or a chosen label, with optional unread-only filtering, to help you browse mail before reading or searching.

Instructions

List recent messages from inbox or a specific label.

Args: max_results: Maximum number of messages to return (default: 20) label: Label/folder to list from (default: INBOX). Examples: "INBOX", "SENT", "STARRED", or custom labels unread_only: If True, only show unread messages

Discovery: use gmail_list_labels to find valid label names before passing a custom label.

Sibling tools: use gmail_read_email with a returned message_id to inspect a message, or gmail_search_email when label browsing is too broad.

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

Input Schema

NameRequiredDescriptionDefault
labelNo
max_resultsNo
unread_onlyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does disclose defaults (20 results, INBOX), the recency ordering, and that message_ids are the handoff artifact to gmail_read_email. It does not mention pagination behavior, whether max_results is capped, or what happens with an invalid label, which are the remaining gaps for a read-only list tool.

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?

The purpose sentence is front-loaded and the Args/Discovery/Sibling blocks are scannable and each carry distinct information. The repeated "Examples:" enumeration inside the Args block is slightly redundant with the Discovery line, but nothing is wasted overall.

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?

An output schema exists so return values need not be explained, and all three optional parameters plus sibling routing are covered. The one thing an agent might still want is guidance on paging through a large mailbox, which is absent.

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 description coverage is 0%, so the Args block is the only source of parameter meaning — and it supplies defaults and concrete label examples (INBOX, SENT, STARRED, custom) for all three parameters. It stops short of clarifying whether label accepts display names versus IDs or how max_results interacts with paging.

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?

The opening sentence names a specific verb and resource ("List recent messages") plus the scope (inbox or a specific label), which is exactly what an agent needs to distinguish it from gmail_read_email and gmail_search_emails.

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?

It gives explicit routing: call gmail_list_labels first to resolve a custom label, pass a returned message_id to gmail_read_email to inspect a message, and fall back to gmail_search_email when label browsing is too broad. Both the when-to-use and the when-to-use-something-else conditions are stated.

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