Skip to main content
Glama
Gmail MCP Server

Gmail MCP Server

by Abhitkumar89

list_unread_emails

Retrieve recent unread Gmail emails to review new messages, filter them with an optional search query, and limit how many results are returned.

Instructions

List recent unread emails (requires OAuth2 config)

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

Input Schema

NameRequiredDescriptionDefault
queryNoAdditional Gmail search query (optional)
maxResultsNoMax number of emails

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It helpfully states the OAuth2 configuration requirement, but says nothing about ordering semantics of 'recent', the default of 5 results, whether results are paginated, or whether reading affects read/unread state.

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?

A single front-loaded sentence with the core action first and the prerequisite trailing in parentheses; no wasted words. Slightly terse given the disclosure burden, but structurally sound.

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?

For a two-parameter read-only list tool with no output schema, the description is adequate on what it returns conceptually but omits ordering, pagination, and side-effect information. With no annotations to cover the safety profile, a bit more behavioral context would be expected.

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%, so the query and maxResults parameters are already documented in the schema; the baseline is 3. The description adds no extra meaning about query syntax (Gmail search operators) or result-count behavior beyond what the schema states.

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 recent unread emails') with a clear scope qualifier ('unread', 'recent'), which distinguishes it from generic mail retrieval siblings like get_email. It does not explicitly name a sibling or contrast with one, 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?

The unread filter implies the usage scenario (surfacing inbox items needing attention), but there is no explicit when-to-use/when-not guidance and no routing to alternatives such as get_email or list_labels. The parenthetical about OAuth2 config faintly points at a prerequisite sibling (check_gmail_config) without saying so.

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