Fetch recent Gmail messages
gmail_fetch_recentFetch recent Gmail messages with metadata and snippets for inbox triage. Returns sender, subject, date, labels, attachment flag, and preview, newest first.
Instructions
Fetch recent Gmail messages (metadata + snippet, newest first) for triage. Returns id, from, subject, date, snippet, labelIds and attachment flag for each message. Use gmail_get_message when the snippet is not enough to judge a message.
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_fetch_recent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How far back to look, in hours (default 24). | |
| query | No | Extra Gmail search terms, e.g. 'is:unread' or 'from:alice@example.com'. | |
| maxResults | No | Maximum messages to return, newest first (default 25). |