Skip to main content
Glama

mail_search

Read-only

Search and list emails across folders or mailboxes by keywords, sender, date range, and unread status; returns previews for opening full messages.

Instructions

List or search mails, newest first. Without filters it lists the folder.

  • folder: inbox, sent, drafts, trash, junk, archive, a path from mail_folders, or "all" for every mail folder of the account (slower)

  • query: words that must all appear in subject, text or sender name

  • sender: part of the sender's name or address

  • since / until: YYYY-MM-DD, 'heute'/'today', 'gestern'/'yesterday' or '7d' (last 7 days)

  • account: a mailbox; omit to search all mailboxes at once Returns previews only (dates carry the weekday); use mail_read for the full text.

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
limitNo
queryNo
sinceNo
untilNo
folderNoinbox
senderNo
accountNo
unread_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/non-destructive/closed-world, so the bar is lower; the description still adds real behavior: result ordering (newest first), that only previews are returned, that dates include the weekday, and that 'all' is slower. It does not discuss pagination or result-size limits, which leaves a small gap.

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?

Front-loaded summary sentence followed by a compact per-parameter bullet list and a closing return-value note; every line conveys information an agent needs, with no redundant restatement of the schema.

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 an 8-parameter search tool with no output schema, the description covers nearly everything needed to call it correctly, including the preview-only return contract. Omitting limit and unread_only semantics is the main remaining gap.

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 description coverage is 0%, so the description carries the full burden, and it does so well: folder enumerates accepted values plus path/'all', query defines AND-semantics across subject/text/sender, sender matches partial name or address, and since/until document YYYY-MM-DD plus relative tokens. Two parameters (limit, unread_only) get no mention, preventing a 5.

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 pair and resource ('List or search mails, newest first') plus the default fallback behavior with no filters. It also names the sibling to use for full message text (mail_read), so an agent can distinguish it from siblings without opening a schema.

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?

Gives clear context: unfiltered calls list the folder, 'all' spans every mail folder but is slower, and mail_read is the follow-up for full text. It stops short of an explicit when-not/alternative matrix (e.g., versus mail_folders for discovering paths), but the practical routing guidance is solid.

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