Skip to content

Connecting agents

The query engine answers one question before an agent shares data: is this safe to send there, and what in it is confidential?

MCP

{
  "mcpServers": {
    "opp": {
      "command": "opp-engine",
      "args": ["serve", "/path/to/acme.opp.yaml", "--mcp"]
    }
  }
}
Tool Arguments Returns
check content (text, a record or a list of records), destination (internal, partner, external_ai, public), optional dataset verdict, summary, findings (class, sensitivity, action, reason, offsets or field), safe_content
explain query: a field, table, identifier value, term, class or concept what the model records about it, with the action for each destination
list_classes optional group the classes and concepts the organization tracks

Add to the agent's instructions:

Before sending data outside the system it came from, call check. Send safe_content instead of the original. If the verdict is block or review, do not send, and say why.

REST API

OPP_TOKEN=change-me opp-engine serve acme.opp.yaml --http 127.0.0.1:8765
curl -s -H "Authorization: Bearer change-me" -H 'content-type: application/json' \
  -d '{"content": "Email [email protected] about CU-123456", "destination": "external_ai"}' \
  http://127.0.0.1:8765/v1/check
Method Path Purpose
POST /v1/check Verdict, findings and safe content for text or records
GET /v1/explain?q= what the model records about a field, value, class or concept
GET /v1/classes Classes and concepts in use
GET /v1/model The loaded privacy model
GET /healthz Liveness

Where to run it

Next to the agent: on the same machine or inside the organization's network. The content sent to check is the data being checked, so the engine must never be a third-party cloud service.

What checking does not do

An agent that asks is protected; an agent that does not ask is not. Enforcement at the network layer, such as a proxy that inspects AI traffic, is a separate layer that can use the same privacy model.