Skip to main content
Glama
huckncatch

mailmate-mcp

by huckncatch

search_messages_tool

Find specific emails in MailMate by searching text, tags, account, or mailbox. Returns matching messages with subject, sender, date, and links for quick access.

Instructions

Search MailMate messages by query string and/or tag.

query and tag are both optional — omit query to list all messages with a given tag, or omit tag to search by text only. Use list_tags to see available tags.

Returns a list of matching messages with subject, from, to, date, mailbox, tags, and message_url for each.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoFilter to messages with this tag (exact match, case-insensitive)
queryNoSearch query (matched against subject, from, to); leave empty to match all
accountNoOptional account filter (substring match on email address)
mailboxNoOptional mailbox filter (substring match, e.g. 'INBOX', 'Archive')
max_resultsNoMaximum number of results to return
include_bodyNoAlso search inside message body text (slower)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the burden of revealing behavior. It discloses that query/tag are optional and that the result is a list with specific fields, but it does not state matching semantics (e.g., query matched against subject/from/to), case-insensitive exact tag matching, or the slower body-search behavior; these are delegated to schema descriptions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, no filler, with the core purpose first, followed by usage modes and a compact return-value list. Every sentence contributes to selection or invocation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only search tool with an output schema and 100% schema coverage, the description covers the essential search modes and result shape. It does not enumerate account/mailbox/body filters, but those are documented in the input schema, so the agent has what it needs to call the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds real semantic value by defining the relationship between query and tag—both optional, with distinct list-by-tag and text-search modes—and by pointing to list_tags for valid tag values. The other parameters (account, mailbox, max_results, include_body) are already well described in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description names the exact operation ('Search MailMate messages') and its two key criteria (query string and/or tag), which is enough to distinguish it from sibling tools like open_message_in_mailmate or get_message. It also states the output is a list of matching messages, confirming it is a search/list tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly explains how to combine the optional query and tag parameters ('omit query to list all messages with a given tag, or omit tag to search by text only') and points to list_tags as a prerequisite helper. It does not mention exclusions or when to prefer get_message/open_message, but the main invocation pattern is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huckncatch/mailmate-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server