mark_read
Mark one or up to 100 Gmail threads as read in a single call, with per-thread results for changed, failed, and notAttempted threads; revert with mark_unread.
Instructions
Mark a thread as read. Pass threadIds (a list of up to 100) instead of threadId to apply the same change to every listed thread in one call — for 'exactly these threads, as approved'. The answer then reports per thread: changed, failed (with code and message; the others still ran) and notAttempted (the run stopped at a rate limit, dead token or missing scope, which would have hit every remaining thread alike); ok is true only when all were changed. SIDE EFFECTS: removes UNREAD; reversible via mark_unread.
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": "mark_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | No | ||
| threadIds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| failed | No | ||
| changed | No | ||
| notAttempted | No |