Skip to main content
Glama

Set PII redaction settings

stack_set_pii_config
Destructive

Set 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

NameRequiredDescriptionDefault
enabledNoMaster switch for PII redaction across the account
countriesNoISO 3166-1 alpha-2 codes, e.g. ["SE","NO","DK"]. null means every country
thresholdNoConfidence needed to redact, 0-1. Higher redacts less. null resets to 0.4

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the destructiveHint=true annotation by disclosing that changes take effect immediately with no approval, including loosening (disabling redaction, raising the threshold, narrowing countries). It also documents the 402 CONTROLS_REQUIRED failure mode, where the owner enables controls, and that self-managed installs have the feature already.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose, then parameters, then the controls/availability caveat, which is a sensible order. A few sentences restate schema content ('threshold is the confidence required before redacting, 0-1', 'ISO 3166-1 alpha-2 codes'), costing some density.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-optional-parameter mutation with no output schema, the description covers defaults, scoping effects, immediacy, error handling and plan availability. It does not say what the call returns on success, which is the remaining gap given no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: the omit-leaves-unchanged versus null-resets distinction, and the fact that email, card, IBAN and IP always scan regardless of countries. It partially repeats the schema's threshold and ISO-code wording rather than fully extending it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: it configures how the LLM gateway redacts personal data from prompts before they reach the provider. That is clearly distinct from the sibling get/reset tools, and the phrase 'An omitted field is left unchanged; null resets it to the default' further separates it from stack_reset_pii_config.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives actionable context for choosing settings, e.g. scoping countries so a lower threshold catches bare-format national IDs without matching order numbers, and explains the omit-vs-null convention that decides between this tool and a reset. It does not explicitly name stack_get_pii_config or stack_reset_pii_config as alternatives, so it stops short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.