Skip to main content
Glama

Find related sessions by UID

malcolm_related_sessions
Read-only

Correlate a Zeek UID across all sessions using direct connection and cross-log references to uncover every linked record.

Instructions

Correlate one Zeek UID across sessions via both direct and cross-reference matches.

    Use this to pivot from a single connection UID to everything tied to it: it
    queries zeek.uid (the direct connection) and rootId (Malcolm's cross-log link,
    carrying references from other log types like files, dns, ssl) in one call.
    Zeek UIDs only: to pivot from an Arkime session id use
    arkime_session_detail, and for a plain single-field query without the dual
    direct/related split use malcolm_search with a zeek.uid filter. This tool
    earns its place only where one connection is recorded under two different
    keys.

    Behavior: runs TWO independent Malcolm searches (one per match kind); `limit`
    caps EACH side separately, so up to 2×limit sessions come back total. The two
    searches fail independently — a failure on one side does not abort the other;
    instead the result carries a `direct_error` or `related_error` string for the
    side that failed while still returning the side that succeeded (check for those
    keys); both failing is reported as an error, since nothing was correlated.
    Neither search is time-filtered — like malcolm_search, both cover all
    retained history, so an empty result is a real absence rather than a
    window. Returns a JSON object with separate "direct" and "related" hit
    lists plus a "summary" count (and per-side error keys only when a side
    fails).
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYesZeek connection UID as it appears in the zeek.uid field, e.g. "CYeji2z7CKmPRGyga". An Arkime session id (the "3@240425-..." form) is a different key and correlates nothing here.
limitNoMax sessions to return per side (direct and related counted separately).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Discloses non-obvious behaviors: runs two independent searches, 'limit caps EACH side separately', independent failures with 'direct_error'/'related_error' keys, and no time filtering (unlike some other tools). These go well beyond the basic safety hints provided by annotations and offer critical operational nuance.

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

Conciseness5/5

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

Although lengthy, every sentence contributes a distinct piece of information: purpose, usage guidance, alternative tools, behavioral caveats, and return format. The structure with paragraph breaks makes it scannable, and the key points are front-loaded in the first sentence.

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

Completeness5/5

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

Given the tool's complexity (dual searches, independent failures, no time filter), the description covers all behavioral aspects an agent needs to invoke it correctly and interpret results. It even explains the return structure and error key handling, which is sufficient even without an output schema.

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. Description adds context by providing an example UID format and explicitly differentiating Zeek UIDs from Arkime session IDs. It also clarifies that limit applies per side, which reinforces the schema description but adds the dual-side emphasis.

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?

The description opens with 'Correlate one Zeek UID across sessions via both direct and cross-reference matches,' using a specific verb and resource. It clearly distinguishes this tool from siblings by explaining it queries both zeek.uid and rootId, which is a unique dual-key behavior.

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

Usage Guidelines5/5

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

Explicitly states when to use (pivot from a single connection UID), when not to use (Arkime session id, plain single-field queries), and names alternatives (arkime_session_detail, malcolm_search). The sentence 'This tool earns its place only where one connection is recorded under two different keys' provides clear exclusion criteria.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nagameTW/mcp-server-malcolm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server