MCP Gmail can't filter for newest unread mails

I am building an MCP server to manage my mails via Gmail. Should not be that difficult. However, when I want to extract my “most recent unread mail” it returns mails seemingly at random, sometimes even from my sent mails. How can I adjust the filtering for this?

Can you provide your workflow to understand the context and setup you are using?


Sure, here are the flows I am using and the node that gets triggered when I ask for unread emails. The output of it is my 50 most recent emails both in and outbox, and the selected response is a random email usually :confused:

You will have to add a filter for unread most likely. What you describe makes sense for the setup.

1 Like

Gotcha, works better now! :smiley: Thank you.

Opening up another thought - mcp is still a bit slow in some processes. I am thinking about pulling all email data to a temporary sql with one mcp call, consuming data from there and pushing information in the background to Gmail. Does this sound reasonable to you or not worth the hustle?

Great, glad that helped! If you could mark my response as solution that would be appreciated :slight_smile:

re other question: Unsure. Potentially. Depends on the setup complexity.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.