Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Detection rule generate

detection_rule_generate
Destructive

Generates safe, structurally validated Suricata, Sigma, YARA, or Zeek detection rules from a defensive purpose and optional indicators.

Instructions

Generate a SAFE DETECTION rule (suricata/sigma/yara/zeek notice) for a defensive purpose. Detection artefacts only — never attack artefacts. Text is structurally validated and may be written inside the workspace. Persisted with verification statically_reviewed.

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": {
      "format": "<format>",
      "purpose": "<purpose>"
    },
    "name": "detection_rule_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYesRule format to generate.
purposeYesDefensive detection purpose.
indicatorsNoOptional indicators (strings/paths) to reference.
outputPathNoOptional workspace-relative path to write the rule.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that text is structurally validated, that output may be written into the workspace, and that the artefact is persisted with a 'statically_reviewed' verification status. It does not address whether an existing file at outputPath is overwritten, which matters given destructiveHint=true.

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?

Three compact sentences with the safety constraint front-loaded and no filler. Slightly telegraphic phrasing ('Persisted with verification statically_reviewed') costs a little readability but wastes no space.

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?

For a four-parameter generation tool with full schema coverage and annotations covering the safety profile, the description supplies the remaining essentials: defensive-only scope, structural validation, workspace write target, and persistence/verification status. No output schema exists, so return-value detail is not required.

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 the schema already documents all four parameters. The description only adds modest context — workspace-relative writing for outputPath and structural validation tied to format — so baseline 3 is appropriate.

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?

The description gives a specific verb ('Generate') and resource ('detection rule') and enumerates the four supported formats (suricata/sigma/yara/zeek). It distinguishes itself from attack-oriented tooling by restricting output to defensive detection artefacts, though it does not explicitly differentiate from sibling search tools like sigma_rule_search or yara_rule_search.

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?

Usage context is clear: defensive purposes only, and 'never attack artefacts' functions as an explicit exclusion. It does not name an alternative tool or spell out when another tool should be preferred instead, so it stops short of full when/when-not guidance.

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

Deploy Server

Other Tools