get_messages_summary
Preview mailbox messages and pending backlog counts without marking them read, then use returned IDs to fetch full message content.
Instructions
Cheap, non-mutating mailbox preview (v2.1.6).
When to use: orchestrators scanning many inboxes per cycle, dashboards rendering a per-agent backlog count, or any flow where you want to see what is there without consuming it. After picking interesting IDs, expand them with get_messages (which CAN mutate) or read them by ID.
Behavior: same status + since filter surface as get_messages, with the same status-dependent since default (pending → 'all', history → '24h'). Returns headers + a 100-char content_preview (decrypted on the fly when RELAY_ENCRYPTION_KEY is set). Never marks messages read. Auth: agent token (own mailbox only).
Returns: { summaries: { id, from_agent, priority, status, created_at, content_preview, content_truncated }[], count, has_more, total, total_pending?, hidden_by_since?, agent, filter, since, since_bound }. total is what your window matched; for a pending preview total_pending is the full, unwindowed queue, and hidden_by_since appears when your window hid pending mail. content_truncated=true when the original content exceeded the 100-char preview cap.
Errors: AUTH_FAILED, VALIDATION, RATE_LIMITED.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max message summaries to return | |
| since | No | Time-window filter. Accepts duration ('15m'|'1h'|'24h'|'3d'), ISO8601 timestamp, 'session_start' sentinel, or 'all'/null for no bound. DEFAULT DEPENDS ON STATUS: status='pending' defaults to 'all' (the action queue is never windowed unless you ask); history reads (all/history/read/resolved) default to '24h'. On a pending read the bound applies only to mail this recipient has already seen: never-drained mail is always returned. When a window hides pending mail, the response says so in `hidden_by_since`. | |
| status | No | Filter by status (same surface as get_messages). 'pending' excludes resolved mail (v2.12.0) so the preview agrees with the mutating drain. | pending |
| agent_name | Yes | Your agent name | |
| agent_token | No | Your agent token (from register_agent response). Optional here — also resolvable from RELAY_AGENT_TOKEN env or X-Agent-Token header. |