Skip to main content
Glama

Find mail

mail_find
Read-only

Search and list Outlook mail newest first with filters for sender, subject, text, date, folder, unread status, flags, and attachments to locate specific messages.

Instructions

List/search mail, newest first; all given filters must match.

One line per mail: ref, '*' if unread, time, sender, subject, [att]/[flag] (and the folder when folder='all'). Prefer narrow filters (sender, since, text) over reading many mails.

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_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoSubject or body contains.
limitNoMails per page (default 15).
sinceNoReceived at/after: '2d', '12h', 'yesterday', '2026-11-01'.
untilNoReceived before this date/time.
folderNoinbox | sent | drafts | deleted | junk | all (every mail folder), or a path like 'Inbox/Projects'.inbox
offsetNoSkip this many mails (value from the 'More results' hint).
senderNoSender name or address contains.
flaggedNoOnly flagged (true) / not flagged (false).
mailboxNoAnother mailbox: a shared mailbox or second account (see mail_mailboxes). Empty = yours.
subjectNoSubject contains.
unread_onlyNoOnly unread mail.
has_attachmentsNoOnly with (true) / without (false) attachments.
response_formatNo'detailed' adds the first 160 characters of each body.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish this is a read-only, closed-world operation, so the description wisely spends its space elsewhere: it discloses the exact result-line shape (ref, unread marker, time, sender, subject, [att]/[flag], folder column when folder='all'), which is the main behavioral unknown given there is no output schema. It also implicitly surfaces pagination via the 'More results' offset hint, though it doesn't cover result caps or mailbox/folder interaction.

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 short blocks, front-loaded with the core action and ordering, then the output contract, then the efficiency advice. Every clause carries distinct information with no filler or restatement of the tool name.

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 13-parameter read tool with no output schema, the description supplies the two things an agent most needs and cannot get elsewhere: the result line format and the filter-conjunction rule. Minor gaps remain around paging limits and how folder vs mailbox scoping interacts, but nothing essential to a correct call is missing.

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 schema handles per-parameter definitions; the description still adds semantics the schema does not carry, notably that all supplied filters must match simultaneously and that the folder column appears only when folder='all'. The tie between offset and the 'More results' hint is reinforced rather than introduced.

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?

States a specific verb and resource ('List/search mail') plus the ordering rule ('newest first') and the AND-combination of filters, so an agent knows exactly what comes back. It does not name a sibling (e.g. mail_read, mail_thread, mail_digest) to disambiguate itself, so differentiation is left to the agent.

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

Usage Guidelines3/5

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

The line 'Prefer narrow filters (sender, since, text) over reading many mails' gives useful efficiency guidance and implicitly steers away from repeatedly reading individual mails. However, no alternative tool is named and there is no explicit when-not condition, so tool selection still requires inference from sibling names.

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