get_messages_summary
Preview unread messages without consuming them, using status and time filters to return summaries with content previews. Never marks messages read.
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. 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, agent, filter, since, since_bound }. 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 | v2.1.6: time-window filter. Accepts duration ('15m'|'1h'|'24h'|'3d'), ISO8601 timestamp, 'session_start' sentinel, or 'all'/null to disable. Default '24h' trims stale backlog when an agent name is reused. | 24h |
| 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. |