define_custom_rule
Create tenant-specific detection rules using regex patterns to block, escalate, or log prompt injection attempts in AI agent interactions.
Instructions
Define a tenant-specific detection rule. Pro+ only.
pattern: regex (case-insensitive)
action: block | escalate | log
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": {
"tenant_id": "<tenant_id>",
"rule_name": "<rule_name>",
"pattern": "<pattern>"
},
"name": "define_custom_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant_id | Yes | ||
| rule_name | Yes | ||
| pattern | Yes | ||
| action | No | escalate | |
| api_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |