Skip to main content
Glama

evaluate_events

Evaluate JSON events against Sigma rules and return matches, using a stateless engine for detection rules and a stateful engine for correlation collections.

Instructions

Evaluate JSON events against Sigma rules and return matches. Detection-only rules use the stateless engine; collections with correlations use the stateful correlation engine. Rules via inline yaml or path; events via an inline events JSON array or an NDJSON events_path. Optional pipelines and match_detail (off/summary/full).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "evaluate_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath to a Sigma file or directory. Mutually exclusive with `yaml`.
yamlNoInline Sigma YAML. Mutually exclusive with `path`.
eventsNoInline events as a JSON array of objects. Mutually exclusive with `events_path`.
enrichersNoInline enrichers config (YAML/JSON) applied to results before returning. Mutually exclusive with `enrichers_path`. Only `template` enrichers with `${detection.*}` or `${correlation.*}` references are supported here; `${ENV_VAR}` references are refused. Use the daemon for `lookup`, `http`, `command`, and `stix`.
pipelinesNoProcessing pipelines (builtin names or file paths).
events_pathNoPath to an NDJSON file of events. Mutually exclusive with `events`.
match_detailNoMatch-detail verbosity: `off` (default), `summary`, or `full`.
enrichers_pathNoPath to an enrichers config file. Mutually exclusive with `enrichers`.
emit_detectionsNoEmit matches for rules referenced by correlations, including correlations that feed another correlation.
timestamp_fieldsNoExtra event field names to try for correlation timestamp extraction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.27.0
    • changedInput schema / properties / enrichers / description
      Previous value: -"Inline enrichers config (YAML/JSON) applied to results before returning.\nMutually exclusive with `enrichers_path`. Only `template` enrichers are\nsupported here; use the daemon for `lookup`, `http`, `command`, and `stix`."New value: +"Inline enrichers config (YAML/JSON) applied to results before returning.\nMutually exclusive with `enrichers_path`. Only `template` enrichers with\n`${detection.*}` or `${correlation.*}` references are supported here;\n`${ENV_VAR}` references are refused. Use the daemon for `lookup`, `http`,\n`command`, and `stix`."
  2. Changed1 schema field changedv0.24.0
    • addedInput schema / properties / emit_detections
      Added value: +{
      +  "default": false,
      +  "description": "Emit matches for rules referenced by correlations, including\ncorrelations that feed another correlation.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changedv0.23.0
    • changedInput schema / properties / enrichers / description
      Previous value: -"Inline enrichers config (YAML/JSON) applied to results before returning.\nMutually exclusive with `enrichers_path`. `lookup` enrichers are not\nsupported here (no dynamic-source cache); use the daemon for those."New value: +"Inline enrichers config (YAML/JSON) applied to results before returning.\nMutually exclusive with `enrichers_path`. Only `template` enrichers are\nsupported here; use the daemon for `lookup`, `http`, `command`, and `stix`."
  4. Addedv0.21.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose non-obvious behavior: two distinct execution engines chosen by rule content, and that match_detail controls output verbosity. It omits what the returned matches look like (no output schema), error behavior, and the enricher restrictions that live only in the schema.

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?

Three tight sentences, front-loaded with the core action and output, then engine-selection behavior, then input modalities. Every clause carries information and nothing is repeated verbatim from the schema.

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

Completeness3/5

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

For a 10-parameter tool with no annotations, no output schema, and dual execution modes, the description covers inputs and engine choice but leaves the return structure and failure modes unexplained. It is adequate to invoke the tool but not to predict what comes back.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already documented in structured data. The description restates the input alternatives (yaml/path, inline events/NDJSON events_path), pipelines, and match_detail but adds no format or behavior detail beyond the schema, making 3 the correct baseline.

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

Purpose4/5

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

"Evaluate JSON events against Sigma rules and return matches" gives a specific verb+resource+output, which clearly distinguishes it from the sibling authoring/validation tools (lint_rules, validate_rules, test_exemplars). It never explicitly names a sibling to rule out, so it falls short of a 5.

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

Usage Guidelines3/5

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

The description tells the agent the engine selection rule (detection-only rules → stateless; collections with correlations → stateful), which implies usage context. However, it offers no explicit when-to-use-this-vs-alternatives guidance — e.g., nothing says to use validate_rules first or when to prefer test_exemplars — leaving the agent to infer routing.

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