Skip to main content
Glama
INKY MCP Server

INKY MCP Server

by FouadHELLAL7

Search INKY messages

inky_messages_search
Read-onlyIdempotent

Search 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

NameRequiredDescriptionDefault
limitNoPage size, 1-100 (default 25).
sinceNoStart of the window; default 7 days before until (ISO-8601 date-time, UTC, e.g. 2026-11-01T00:00:00Z).
untilNoEnd of the window; default now (ISO-8601 date-time, UTC, e.g. 2026-11-01T00:00:00Z).
cursorNoOpaque next_cursor from a previous call of THIS tool with the SAME filters. Omit for the first page.
detailNoReturn the full analysis record per row (larger). Default false.
reasonNoDetection codes as returned in reasons[].code; matches any of them.
senderNoFrom address (exact, case-insensitive).
team_idYesTeam or organization node id exactly as returned by inky_teams_list (org node ids start with '$'). Opaque; pass verbatim.
reportedNotrue: only messages a user reported; false: only unreported.
recipientNoProtected mailbox the message was delivered to (exact, case-insensitive).
from_domainNoFrom domain (exact, not a suffix match).
threat_levelNoINKY's overall verdict.
delivery_targetNoWhere INKY delivered the message.
result_categoryNoINKY's finer-grained result category.
rfc822_message_idNoRFC822 Message-ID header, with or without angle brackets (case-sensitive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description still adds substantial behavior: results are newest first, all filters are exact-match and ANDed, the window defaults to 7 days and is capped at 90, detail=true expands the payload, and message bodies are never retrievable — all facts absent from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and endpoint, then filters, scoping, window limits, and payload options — nearly every clause carries information. It is a single dense paragraph with telegraphic fragments, which is efficient but slightly harder to scan for a 15-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and 15 parameters, the description covers ordering, filter combination semantics, date-window bounds, record identity, and what detail adds — enough to call the tool correctly and interpret rows. The main residual gap is that the response envelope (paging fields, next_cursor) is left entirely implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description adds meaning beyond the schema by explaining that filters combine with AND, that exact-match rather than substring semantics apply, that team_id accepts an org node to fan out across sub-teams, and what detail=true actually returns. It does not spell out the cursor/next_cursor pagination contract, leaving that to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Search the analysis records of inbound mail INKY processed') plus the underlying endpoint and required scope. It also distinguishes itself from alternatives by noting that no subject/free-text search exists and that reported mail can be isolated via the reported filter, so an agent knows exactly what corpus it is querying.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear situational cues: recipient is 'start of most investigations', rfc822_message_id is for SIEM/reported-mail correlation, and an organization node may be passed as team_id to span every team beneath it. It never explicitly says when to prefer a sibling such as inky_reported_mail_list instead, so it stops short of full alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.