Set detector configuration
stack_upsert_detector_configSet the account's customization for one detector: custom regex patterns (custom_patterns), suppression of false-positive matched_text values (whitelist_patterns), severity remaps for built-in patterns (severity_overrides) and a master switch (enabled). Detector settings are a controls feature: with controls on a change applies at once, with no approval; without controls the API answers 402 CONTROLS_REQUIRED. A self-managed install has every controls feature.
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": {
"detector_key": "<detector_key>"
},
"name": "stack_upsert_detector_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Master switch — set false to disable this detector entirely for your operator | |
| detector_key | Yes | Detector key, e.g. "prompt_injection" | |
| custom_patterns | No | Up to 50 operator-specific patterns | |
| severity_overrides | No | Map of built-in pattern_id → desired severity | |
| whitelist_patterns | No | Up to 50 suppression rules |