Triage a Zoho Mail Inbox with Hermes Agent and Zoho MCP

The way that you can connect your agent to your mailbox to do some automation works. In this scenario, I connect it to my Hermes agent but it should work similar to other agents such as ChatGPT or Claude.

Think about what you want your agent to do with your mailbox first, then choose approriate tools to assign to your agent. Do not give the agent to much power if you cannot control it.

Here is my example, that I want the agent to read email threads, messages, and do some email triage (categorize, label, move messages into folders) in Zoho mailbox. Therefore, I need to give permissions to my agent to access these tools.

There are several ways to setup the agent to connect Zoho mailbox, via MCP gateways or a direct connection. However, I guess below is the easiest way and it is zero cost as Zoho provides us mcp to access all Zoho services free of charge.

1. Sign in Zoho MCP

If you don’t have account, sign up at https://www.zoho.com/mcp/signup.html or sign in with your existing Zoho account https://accounts.zohocloud.ca/signin?servicename=ZohoMcp . Use the same Zoho account and data center as your mailbox. My account lives in the Canadian data center, so everything below runs on zohocloud.ca and zohomcp.ca domains. Yours may be .com, .eu, .in, or another region.

2. Build a custom MCP server

After login, you land on the Build MCP Servers page you will see a set of pre-configured servers. Most of them target Zoho CRM, so for email choose Create MCP server and give it a name.

Zoho MCP Landing
Zoho MCP Create Server

A new server starts empty.

3. Choose the Mail tools deliberately

Open Tools, click Add Tools, and pick Zoho Mail from the product list.

Zoho Mail exposes more than 150 tools, grouped by area. This step matters most. Every tool you add here is something the agent can call, so select tools for the job, not for completeness.

Zoho MCP Add Tools dialog for Zoho Mail in group view, with Account 2/16, Folders 8/10, Labels 5/5, Message 20/20, Search 1/1, and Threads 9/9 selected
The tool groups I enabled for triage. Admin, policy, and user-management groups stay off.

For the tasks described above I enabled:

  • Account: only getMailAccounts and getAccountDetails. The agent needs the account ID to access the user’s mailbox. When you authenticate agent, it can read your mailbox via tool calls.
  • Message: list, read, flag, label, archive, move, mark as spam, and mark as read.
  • Threads: the same operations applied to whole conversations.
  • Labels: so the agent can create and apply labels such as “Invoices” or “Needs reply”.
  • Search: SearchEmails, which accepts Zoho Mail search syntax.
  • Folders: listing and moving folders. Leave out operations you would never want an agent to run, such as deleteFolder or emptyFolder.

Everything else, including Domain Management, Org Management, Policy Management, User Management, and Audit Logs, stays off. Those groups are admin tools, not mailbox tools.

Note that the full Message group includes sendEmail, sendReplyEmail, and deleteEmail. If you only want read-and-sort triage, open the group and uncheck them. I kept them because I want the agent to draft replies.

Click Add Now. The server’s Tools page then lists every Zoho Mail tool linked to it.

4. Keep authorization on demand

Under Connection, Zoho offers two authorization types:

  • Authorization on Demand (the default): each MCP client signs in through OAuth, and tools run as the person who authorized them.
  • Authorization via Connection: tools are pre-authorized once in the Zoho console, and every caller shares that single authorization.

For a personal mailbox, keep Authorization on Demand. The agent then acts as you, through a sign-in you approved and can revoke.

Finally, open Connect and copy the server URL. It looks like https://mail-mcp-<id>.zohomcp.ca/mcp/<key>/message. Treat it like a password: the key is in the path.

5. Add the server to Hermes Agent

In the Hermes dashboard, open MCP and click Add Server:

  • Name: zoho-mcp
  • Transport: HTTP/SSE
  • URL: the Zoho MCP server URL from the previous step
  • Authentication: OAuth

Hermes Agent Add MCP Server dialog with name, HTTP/SSE transport, URL, and OAuth authentication fields

6. Authenticate with Zoho

Back on the MCP list, click Authenticate next to zoho-mcp. Zoho asks you to sign in, then a consent screen appears.

Zoho MCP consent screen asking to allow access to the Zoho MCP account and redirect the authorization code to the Hermes OAuth callback
Check the redirect destination before clicking Allow. It should point at your own Hermes dashboard.

Read this screen before approving. It grants access to your Zoho MCP account and the tools you enabled.

After Allow, the browser shows “Authorization received”. Return to Hermes. The zoho-mcp entry now lists the Zoho Mail tools it discovered: ZohoMail_listEmails, ZohoMail_getMessageContent, ZohoMail_applyLabelToMessages, ZohoMail_moveMessages, …

Hermes MCP servers list showing zoho-mcp connected over HTTP with OAuth and its ZohoMail tools listed

7. Chat with the agent

Open Chat and confirm the banner shows the MCP server as connected. Then start with something harmless:

read my zoho latest email

Hermes Agent chat answering “read my zoho latest email” after calling GetMailAccounts, GetAllFolders, ListEmails, and GetMessageContent

The tool calls show how the agent navigates the mailbox. It looks up the account (GetMailAccounts), finds the Inbox (GetAllFolders), lists the newest messages (ListEmails), and reads the top one (GetMessageContent). The whole run took a few seconds. If this works, the connection, OAuth, and tool selection are all correct.

8. Triage the inbox

With reading confirmed, move on to real triage. I keep my rules in a Hermes skill named email-inbox-triage, which Hermes loads automatically for inbox requests (you can see Skill View("email-inbox-triage") at the top of the tool calls above). You can also put the rules directly in a prompt:

Triage my Zoho Inbox from the last 24 hours.

This works like a magic, arrange your emails nicely under categories: Need to reply, Urgent, … Those are written in email-inbox-triage. Depending your need, the skill can be rewritten to adapt to your business, such as collecting invoice emails, grouping potential customers for futher follow up.

What to keep in mind

  • The tool list is the permission model. Hermes can only do what the Zoho MCP server exposes. Narrow it in Zoho rather than relying only on prompt instructions. If you don’t want agent to accentially delete your emails, remove that tool from Zoho mcp server setup.
  • The server URL is a credential. It contains a key. Keep it out of anything you share, and rotate it if it leaks.
  • Check every OAuth consent screen. Confirm the redirect points at your own Hermes instance before you approve.
  • Read before you write. Confirm the agent reads and categorizes correctly before you let it label, move, or archive.

Email is a good first agent workflow because the value is immediate and most actions are reversible: a label can be removed, and an archived message can be restored.