Skip to main content
Glama
Mail-MCP

Mail-MCP

by Rixtayz

Search messages

mail_search
Read-onlyIdempotent

Search and list folder messages newest first, filtering by exact sender, date range, or unread status, or run full-text queries across subject, body, and sender; returns compact summaries.

Instructions

List messages of a folder (Inbox by default), newest first, with filters: exact sender, date range, unread only. query runs a full-text search (subject, body, sender) and cannot be combined with the other filters. Returns a compact summary (id, sender, subject, date, preview); use mail_get_message for the full content. To page, pass cursor back verbatim. For a whole-mailbox view by sender, prefer mail_senders_summary.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mail_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoExact sender address, e.g. news@example.com
limitNoResults per page (max 100)
queryNoFull-text search (simple KQL). Exclusive with from/since/until/unreadOnly.
sinceNoReceived on or after this date (ISO)
untilNoReceived on or before this date (ISO)
cursorNoPage cursor returned by a previous call
folderNoFolder (name, path, well-known name or id). Default: inbox
unreadOnlyNoOnly unread messages

Output Schema

NameRequiredDescriptionDefault
countYes
itemsYes
nextCursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world behavior, so the bar is lower; the description adds result ordering (newest first), the shape of the compact return (id, sender, subject, date, preview), and the requirement to pass cursors back verbatim. The exclusivity rule is partly repeated from the schema's parameter descriptions, which slightly limits added value, but the ordering and cursor-handling behavior are genuine additions.

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?

Roughly four dense sentences with no filler: purpose and ordering first, then the exclusivity constraint, then the return shape, then paging and the alternative tool. Every sentence carries information an agent needs.

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

Completeness5/5

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

With an output schema present, the description needn't detail return fields, yet it still sketches the summary payload; annotations cover safety. Nothing material is missing for an agent to invoke this correctly across 8 optional parameters.

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 coverage is 100%, so the baseline is 3 and each parameter is already documented in the schema. The description adds some meaning — that query searches subject/body/sender, the Inbox default for folder, and verbatim cursor reuse — but most of this overlaps with what the parameter descriptions already say.

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?

States a specific verb and resource ('List messages of a folder'), plus scope details: Inbox default, newest-first ordering, and the supported filter set. It also names the two siblings it is not (mail_get_message, mail_senders_summary), so an agent can distinguish it without inspecting schemas.

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

Usage Guidelines5/5

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

Explicitly states the query/filter exclusivity rule ('cannot be combined with the other filters'), routes full-content needs to mail_get_message, routes sender-aggregate needs to mail_senders_summary, and explains the paging protocol. Both when-to-use and when-to-use-something-else are covered.

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