add_custom_rule
Create a custom detection rule in the backend. Requires API key (Pro+).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Rule name | |
| tier | No | Optional tier restriction | |
| severity | Yes | Severity on match | |
| description | Yes | Rule description (required — the backend 400s on a missing/empty description) | |
| detection_pattern | Yes | Compiled regex detection pattern (required — the backend 400s on a missing/empty detection_pattern). There is no 'pattern' field: 'detection_pattern' is the only field name the evaluator reads; the backend explicitly rejects 'pattern'. |