A Technical blog series on where sensitive data moves in an AI workflow, what decisions Protecto makes at each point, and what enterprises get from enforcing policy once instead of everywhere.
Contents
Introduction The Six Places Enterprise AI Touches Sensitive Data ← You are here
Pattern 1 · Inside the Agent The Claims Agent That Compliance Wouldn’t Approve: Putting Protecto Inside an AI Agent
Pattern 2 · API Gateway Integrate Once: Why AI Data Policy Belongs at the API Gateway, Not Inside Every Agent
Pattern 3 · AI Gateway Every Team Is Calling an LLM. One Policy Should Govern All of It: Protecto at the AI Gateway
Pattern 4 · MCP Gateway Your Agents’ Tools See More Than Your Agents Do: Protecto as the MCP Gateway
Pattern 5 · Agent Gateway When One Agent Hands a Case to Another: Protecto as the Agent Gateway
Pattern 6 · RAG PipelineThe Archive That Answers Back: Protecto in the RAG Pipeline
INTRODUCTION
The Six Places Enterprise AI Touches Sensitive Data
Enterprise AI has a data problem that no single team created and no single team can fix. An agent needs real records to do useful work, and those records contain things that should never reach a model provider, a vendor tool, a log file, or a customer-facing summary. Every enterprise deploying AI hits this wall, usually at security review, usually after the demo already impressed everyone.
This series is about the six places that data moves, and how Protecto enforces policy at each one. Each article stands on its own, so you can read only the pattern you’re deploying. Read together, they show how the same policy engine covers an entire AI workflow.
One task, six exposure points
Take a simple case. A policyholder asks an insurer’s AI claims agent where their claim stands. To answer, the agent pulls the case file, checks history, decides whether the claim needs a second look, and replies.
That single task touches sensitive data in six architecturally different places:
- Inside the agent itself, where the case file sits in context, memory, and logs.
- At the internal APIs, where the policy and claims systems return full records.
- At the model call, where the prompt leaves the company for an LLM provider.
- At the tool calls, where MCP servers reach the DMV, medical records, and other systems.
- At the handoff, when the claims agent escalates the case to a fraud-review agent.
- At retrieval, when the knowledge base surfaces similar past claims as precedent. Six different enforcement problems. The same policy engine solves all six, but it attaches at six different points, because those points work in fundamentally different ways.
What this looks like without policy enforcement

The components you do have tend to have been built by different teams, at different times, for different reasons. The API gateway team was solving for routing and reliability. The AI gateway team was solving for cost tracking and provider flexibility. Whoever stood up MCP was solving for tool access. The RAG team was solving for retrieval quality. Nobody owns the whole picture, so nobody can answer a simple question: for this specific task, what should this agent actually be allowed to see and pass along? Where a control point doesn’t exist yet, that question has no place to be answered at all, which is its own argument for introducing one.
Blanket redaction doesn’t answer it either. Redact everything sensitive before the agent sees it and the agent can no longer reason over the case, the masked account ID breaks the API lookup, and the masked address can’t be handed to the system that needs it. Leave everything unmasked and the case file, medical notes, and internal findings move through six systems with no consistent control at any of them.
Where Protecto sits

Protecto doesn’t replace the agent’s reasoning, the APIs, the model providers, the tools, or the knowledge base, and it doesn’t replace the gateways either. It attaches to each of those components where data crosses the boundary, and applies one consistent decision: allow the value through, protect it with a consistent placeholder, transform it down to what the task needs, block it outright, or unmask it for a user and task whose policy permits it.
| Integration pattern | What Protecto attaches to | The problem it solves |
| Agent | The agent’s own execution flow, no separate gateway involved | Sensitive data in prompts, memory, and logs inside a single agent |
| API Gateway | The gateway that already fronts internal APIs | Many callers pulling full records from shared backend APIs |
| AI Gateway | The gateway that already routes model traffic | Prompts leaving the company for external model providers |
| MCP Gateway | A gateway that centrally routes tool calls, where one exists or is introduced | Real identifiers going out to tools, full records coming back |
| Agent Gateway | A gateway or orchestration layer that routes agent-to-agent messages | Whole work products moving between agents with different roles |
| RAG pipeline | The ingestion and retrieval steps | Sensitive source material embedded at rest and served on every query |
The series
- Inside the agent. The Claims Agent That Compliance Wouldn’t Approve. An agent needs the full case file to work, and everything it holds flows onward to the model, its memory, and its logs. This is the only pattern that reaches inside the agent, and the only one you integrate per agent.
- API Gateway. Integrate Once. When a dozen agents and apps pull from the same internal APIs, you can build filtering into every caller or enforce it once where they all pass through. This article does that math and shows per-caller policy in action.
- AI Gateway. Every Team Is Calling an LLM. In most organizations, prompt traffic to external providers grew faster than any process for reviewing it. One rulebook at the AI gateway covers every team, every model, and every feature nobody reviewed.
- MCP Gateway. Your Agents’ Tools See More Than Your Agents Do. Tool calls carry data in both directions, and the agent in the middle can’t tell which parts of a tool’s response are sensitive. Enforcement belongs at the tool boundary.
- Agent Gateway. When One Agent Hands a Case to Another. Handoffs move entire work products between agents with different jobs and different audiences. Both directions need policy, and the return path is the one teams forget.
- RAG pipeline. The Archive That Answers Back. A vector index is a memory your AI consults forever. Protect at ingestion to govern what the store holds, and at retrieval to govern who sees what.