Set PII redaction settings
stack_set_pii_configSet how the LLM gateway redacts personal data from prompts before they reach the model provider. threshold is the confidence required before redacting, 0-1; a higher value redacts less (default 0.4). countries lists ISO 3166-1 alpha-2 codes whose national-identifier schemes run; null runs every country. Scoping to the countries the account works in lets a lower threshold redact bare-format personal numbers (Dutch BSN, Croatian OIB, Portuguese NIF) without also matching order numbers. Email, card, IBAN and IP always scan. An omitted field is left unchanged; null resets it to the default. Available on every plan. A change applies at once and asks no one, loosening included (redaction off, a higher threshold, a narrower country list). A controls feature: with controls off the API answers 402 CONTROLS_REQUIRED, and the owner switches controls on in the Console, at the Billing page. A self-managed install has every controls feature.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stack_set_pii_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Master switch for PII redaction across the account | |
| countries | No | ISO 3166-1 alpha-2 codes, e.g. ["SE","NO","DK"]. null means every country | |
| threshold | No | Confidence needed to redact, 0-1. Higher redacts less. null resets to 0.4 |