ews_search_messages
Search Microsoft Exchange emails via EWS across inbox, sent, drafts, deleted, and junk folders, with pagination and account selection.
Instructions
Search emails via Exchange Web Services. Preferred for Microsoft accounts. Supports inbox, sent, drafts, deleted, junk folders.
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": "ews_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum messages to return (1..50, default 10) | |
| folder | No | Folder name (inbox, sent, drafts, deleted, junk) | |
| offset | No | Offset for pagination (default 0) | |
| account_id | No | Account identifier (defaults to `"default"`) | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool-specific data payload | |
| meta | Yes | Execution metadata (timestamp, duration) | |
| summary | Yes | Human-readable summary of the operation outcome |