How Rules Are Created
Detection rules are auto-created when alerts arrive. If an alert references a detection rule that doesn’t exist yet, Calseta creates it with metadata from the alert payload. You can then enrich the rule with documentation, MITRE mappings, and more. Rules can also be created manually via the API for pre-populating your detection library.Rule Structure
Documentation Template
Thedocumentation field is the primary value of detection rules. A well-documented rule follows this template with all 16 sections:
All 16 sections should always be present, even if marked “Not applicable.” This gives agents a consistent structure to parse. Use the query language appropriate to your source: KQL for Sentinel, EQL for Elastic, SPL for Splunk.
How Agents Use Detection Rules
When an agent retrieves an alert (via REST or MCP), the associated detection rule is included in the response. The agent reads the documentation to understand:- What the detection is looking for
- What false positives to consider
- What investigation steps to take
- What response actions are appropriate
API Endpoints
MCP Access
- Resource:
calseta://detection-rules— list all rules - Resource:
calseta://detection-rules/{uuid}— get a single rule - Tool:
search_detection_rules— search by keyword, MITRE mapping, or severity

