Sensitive data stays out of prompts. Agents get only what they may read.
Every prompt, response, tool call and tool result from your AI agents passes the AI gateway. Identifiers are found with validators and blocked or masked by the agent’s AI policy; models and MCP tools are allow-listed; a tool’s SQL is decided like a person’s query.
Found by validators, blocked or masked by policy
Card numbers are Luhn-checked, SSNs checked against the SSA rules, IBANs by mod-97; emails, phones, dates of birth and addresses are found too, and prompt-injection heuristics run on every channel. The AI policy lists what is blocked, what is masked, which models are allowed, and whether injection is blocked or flagged. Only the masked text and the findings are stored, never the raw prompt.
- Four channels — prompt, response, tool call and tool result
- Default policy — cards, SSNs and IBANs blocked; the rest masked; no tools
- Model allow-list — a call to a model the agent may not use is blocked
- Injection — blocked or flagged, per policy
An agent is a principal
An agent’s tools are allowed or denied by name. When a tool carries SQL, the data policies decide it exactly as they would a person’s query: the support assistant gets tokenized account numbers, at most 50 rows, and no SSNs at all. Each agent is linked to its InsightControl register entry.
- Check before the call —
check_toolin the SDK, or the Try it panel - Register links — every agent with its owner record in InsightControl
from insightshield_sdk import Shield, Blocked shield = Shield("https://shield.example.com", api_key="…") # an agent acting as itself res = shield.query("core_banking", "select account_number, balance from accounts where customer_id = 100042") res.rows, res.decision, res.sql # masked / tokenized as the policies say safe = shield.guard_prompt(prompt, model="us.anthropic.claude-sonnet-4-5") # masked text, or Blocked shield.check_tool("query_gateway", source="core_banking", sql=sql) # before an MCP tool runs
Each with its policies and its register entry
The AI gateway lists every agent and app with its AI policy, its allowed tools, its events and blocks, and who it acts for.
Where people stay in charge
- An agent’s tools and models are allowed by a policy a lead activates; the agent can’t widen its own access.
- Every agent action is capped at L2, “ask first”: an agent prepares, and a person confirms, activates, revokes, sends or decides.