Gmail Check Mail Updates
gmail_check_mail_updatesFetches new sent and received Gmail messages since a saved history checkpoint or timestamp for incremental polling; excludes drafts and returns the next checkpoint.
Instructions
Fetch the mail added to the mailbox since a saved checkpoint (since_history_id), or on a cold start since timestamp (the last day without one), received and sent alike with drafts left out, for incremental polling. Use gmail_get_mail_digest for a one-off look at a recent window and gmail_search_emails to search. Returns messages (the digest's fields), count, skipped_deleted_message_ids for mail deleted before it could be read, next_page_token, and next_history_id: the checkpoint to save for the next call, null until the last page. Read bodies with gmail_read_emails.
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_check_mail_updates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timestamp | No | Cold-start alternative to since_history_id: an ISO-8601 datetime with offset, e.g. '2026-11-01T08:00:00Z', or epoch seconds; returns mail added after that time. Ignored when since_history_id is set; with neither, the last day of mail is returned. | |
| page_token | No | Pagination token from a prior response's next_page_token. Resubmit the matching continue_from_history_id as since_history_id, or continue_from_timestamp as timestamp, until the final page returns a non-null next_history_id. | |
| max_results | No | Page size (default 100): history records when resuming from since_history_id, messages on a cold start. Continue with next_page_token. | |
| since_history_id | No | Gmail historyId to resume from: the next_history_id saved from the previous call, or the continue_from_history_id while paging; omit for a cold start. On paginated responses, next_history_id is null until the final page; do not overwrite a saved checkpoint with null. Continue with next_page_token as page_token and preserve the response's continue_from_history_id or continue_from_timestamp. Takes precedence over timestamp. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| has_more | No | Whether another page is available. | |
| messages | No | ||
| fetched_at | No | RFC3339 time when this response was fetched. | |
| next_history_id | No | ||
| next_page_token | No | Opaque token for the next page, or null. | |
| account_timezone | No | ||
| skipped_deleted_count | No | ||
| continue_from_timestamp | No | ||
| continue_from_history_id | No | ||
| skipped_deleted_message_ids | No |