Skip to main content
GET
Mail accumulates fast when an agent runs on its own. Instead of pulling the whole inbox and filtering client-side, ask for exactly what you need: the invoice, the reset link, everything a customer sent this week. Search is case-insensitive and matches across the subject, the body, the sender (address and display name) and the recipients. Results are newest first.

Query parameters

string
Free-text terms. Up to 200 characters. % and _ are treated literally, so searching for 50% does not match everything.
string
Restrict the search to one inbox. Inbox-bound keys are always restricted to their own inbox regardless of this value.
string
inbound for received mail, outbound for sent mail.
string
Substring match against the sender address (from=acme.com).
string
ISO date or timestamp lower bound, e.g. 2026-09-01.
string
ISO date or timestamp upper bound.
number
default:"50"
Maximum results, 1–100.

From an agent (MCP)

The gork_search_emails tool exposes the same query with direction, from, since and until filters, and returns a compact list of hits.