Metis · Data Guardian — Scan Outgoing
scan_outgoingChecks drafted responses for leaked PII before sending, returning a safety verdict, detected data types, and a masked version safe to send.
Instructions
Output rail: check a drafted response for leaked PII before it's sent.
The output-side complement to the read-side hook. Agents call this on any
response that might contain individual-level data; it enforces the
constitution's no-pii-output rule. Returns a verdict, what was found, and a
masked version safe to send.
Args:
text: The drafted response text to check.
Returns JSON: {safe: bool, found: {type: count}, masked: str}.
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": {
"text": "<text>"
},
"name": "scan_outgoing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |