batchGetThreads
Retrieve multiple email threads by ID in parallel, with formats for clean, full, or metadata views and limits that control quoted history and total response size.
Instructions
Get multiple threads by ID in parallel. Clean mode removes quoted reply history when it can be safely identified; an ambiguous Outlook-style quote (no ">" prefixes to mark where it ends) is left in the body rather than guessed at, and flagged via quotedHistoryAmbiguous/quotedHistoryNote. Full mode limits decoded text bodies with maxBodyChars. maxResponseChars bounds the aggregate response size across all requested threads combined: whole threads are dropped from the end of the ids list first, then each retained thread is capped individually, with truncation reported on the last returned thread (batchResponseTruncated/totalThreadsRequested/includedThreads/truncationNote).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ids": "<ids>"
},
"name": "batchGetThreads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The IDs of the threads to retrieve | |
| format | No | Response format for each message: clean (default), metadata (headers only), or full (raw MIME tree) | clean |
| maxMessages | No | Only include the latest N messages per thread. Omit for all. 0 or a negative value means unlimited. Fractional values are floored. | |
| maxBodyChars | No | Max decoded chars per text body — per message in clean mode, per MIME text part in full mode; not a whole-response cap. Oversized undecoded parts (e.g. HTML) are omitted with a totalChars note. 0 = unlimited. | |
| includeQuoted | No | In clean mode: skip quote detection entirely and always return the full body, including any quoted reply history. Default false. Use this if quotedHistoryAmbiguous keeps showing up and you'd rather have the full text every time than a per-message flag. | |
| includeBodyHtml | No | In full mode only: whether to include parsed HTML body parts | |
| maxResponseChars | No | Whole-response character budget across every requested thread combined (unlike maxBodyChars, which only caps each message independently, and applies per-thread besides). When exceeded, whole threads are dropped from the end of the ids list first; each retained thread is also capped individually. Truncation is reported on the last returned thread via batchResponseTruncated/totalThreadsRequested/includedThreads/truncationNote, and per-thread when an individual thread's messages were cut. Default 100000. 0 = unlimited. |