search_emails_metadata
Search emails with a query across subject and body, returning only metadata like subject, sender, and timestamps, never body fragments. Enables content search without exposing message content.
Instructions
Same as search_emails (free-text search across subject and body) but returns ONLY metadata on each match — id, threadId, subject, from, to, replyTo, receivedAt, hasAttachment, keywords. The query still searches body text on the server side; only the result envelopes come back, never preview or body excerpts. Use when a content match is required (e.g. "find all messages mentioning X") but the matches must not surface body fragments to the caller.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results (default: 20) | |
| query | Yes | Search query string | |
| ascending | No | Sort oldest first instead of newest first (default: false) |