Skip to main content
Glama
gfam-git

Simple IMAP MCP Server

by gfam-git

Search Emails

search_emails

Find email messages in an IMAP folder by sender, recipient, subject, keyword, date range, or unread status. Returns paginated results with configurable offset and limit.

Instructions

Search emails by criteria, returning paginated results

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoRecipient address filter
fromNoSender address filter
limitNoMax results, default 50
folderNoIMAP folder, default "INBOX"
offsetNoPagination offset, default 0
date_toNoISO 8601 date
keywordNoGeneral body/keyword search
subjectNoSubject substring match
date_fromNoISO 8601 date, e.g. "2026-08-01"
unread_onlyNoOnly unread messages
Install Server

TDQS

B3.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 behavioral burden. It does disclose that results are paginated, but it does not mention ordering, search semantics (AND vs OR), whether folder defaults apply, or any read-only guarantee. The disclosure is minimal but not absent.

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?

The description is a single, front-loaded sentence with no filler. It communicates the essential action and result shape efficiently.

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

Completeness2/5

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

This tool has 10 parameters, no output schema, and no annotations, yet the description is extremely terse. It does not clarify search behavior, result ordering, return structure, or how filters combine. More detail is needed for an agent to confidently select and invoke this tool in complex scenarios.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 10 parameters. The description does not add meaning beyond the schema, making the baseline 3 appropriate.

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

Purpose4/5

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

The description clearly states a specific verb ('Search'), a resource ('emails'), and a general behavior ('by criteria, returning paginated results'). It is clear enough to separate this from fetch_email or get_email_body, though it does not explicitly name or contrast sibling tools like list_unread.

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

Usage Guidelines2/5

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

No guidance is given about when to use this tool versus alternatives such as list_unread, fetch_email, or get_email_body. There are no exclusions, prerequisites, or context cues beyond the generic 'by criteria'.

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

Other Tools

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/gfam-git/Imap-server'

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