Search INKY messages
inky_messages_searchSearch INKY's analyzed inbound mail by recipient, sender, domain, Message-ID, threat level, reason code, delivery target or report status to investigate an incident; view decision details.
Instructions
Search the analysis records of inbound mail INKY processed (GET /beta/teams/{team_id}/messages, beta; needs messages.read). Newest first. Exact-match filters ANDed together: recipient (start of most investigations), sender, from_domain, rfc822_message_id (correlate with SIEM/reported mail), threat_level, reason codes, delivery_target, result_category, reported. Pass an organization node as team_id to search every team beneath it. Window defaults to the last 7 days and may not exceed 90 days. No subject/free-text search exists. detail=true adds links, attachments (name/type/size/SHA-256), Reply-To/To/Cc, sender IP/country, HELO and provider spam signals. Message bodies are never available. A copy is identified by team_id + mailbox + rfc822_message_id + received_at.
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": {
"team_id": "<team_id>"
},
"name": "inky_messages_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, 1-100 (default 25). | |
| since | No | Start of the window; default 7 days before until (ISO-8601 date-time, UTC, e.g. 2026-11-01T00:00:00Z). | |
| until | No | End of the window; default now (ISO-8601 date-time, UTC, e.g. 2026-11-01T00:00:00Z). | |
| cursor | No | Opaque next_cursor from a previous call of THIS tool with the SAME filters. Omit for the first page. | |
| detail | No | Return the full analysis record per row (larger). Default false. | |
| reason | No | Detection codes as returned in reasons[].code; matches any of them. | |
| sender | No | From address (exact, case-insensitive). | |
| team_id | Yes | Team or organization node id exactly as returned by inky_teams_list (org node ids start with '$'). Opaque; pass verbatim. | |
| reported | No | true: only messages a user reported; false: only unreported. | |
| recipient | No | Protected mailbox the message was delivered to (exact, case-insensitive). | |
| from_domain | No | From domain (exact, not a suffix match). | |
| threat_level | No | INKY's overall verdict. | |
| delivery_target | No | Where INKY delivered the message. | |
| result_category | No | INKY's finer-grained result category. | |
| rfc822_message_id | No | RFC822 Message-ID header, with or without angle brackets (case-sensitive). |