[BUG] Gmail MCP: search_messages ignores query parameter, always returns most recent emails
Resolved 💬 2 comments Opened Apr 2, 2026 by afromm-dev Closed Apr 5, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Bug Description
The gmail_search_messages tool ignores the query parameter entirely.
Regardless of the search query provided, it always returns the same set
of most recent emails (sorted by date descending), as if no filter was applied.
What Should Happen?
Expected Behavior
Results should be filtered by the Gmail search query, matching Gmail's
native search operators (keywords, date ranges, subject filters, etc.).
Error Messages/Logs
## Actual Behavior
All search queries return the same list of recent emails.
`resultSizeEstimate` is always 201, and `nextPageToken` is always
the same value, confirming the query is not being passed to the Gmail API.
Steps to Reproduce
Steps to Reproduce
- Connect Gmail MCP via gmail.mcp.claude.com
- Call
gmail_search_messageswith any keyword query, e.g.:
"sailing Greece""subject:sailing""after:2026/01/31 before:2026/03/01""Segeln Griechenland"
- Observe that all queries return identical results — the ~20 most recent
inbox messages — regardless of the search terms.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Environment - Claude Code (claude-sonnet-4-6) - Gmail MCP: gmail.mcp.claude.com - Date: 2026-04-03
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗