# MCP Server & Tool Reference

Canonical URL: https://naditu.com/docs/mcp-tools
Section: 02 · MCP 2026-07-28

Naditu exposes your governed ontology over the Model Context Protocol (MCP 2026-07-28 Streamable HTTP) from inside your network. Instead of dumping hundreds of raw database table schemas into an agent context window, Naditu serves four deterministic, caller-scoped tools.

- **Transport:** Streamable HTTP (MCP 2026-07-28) over TLS
- **Core read & audit tools:** search · get_record · lineage · explain_policy
- **Gateway topology:** Plugs behind LiteLLM, Archestra, Kong & internal harnesses

## Four bounded tools instead of raw SQL passthrough (#transport-and-contracts)

Exposing raw SQL execution or dozens of auto-generated table endpoints overwhelms agent tool caches and makes deterministic policy enforcement impossible. Naditu keeps the MCP tool surface compact and typed so Claude, ChatGPT, coding harnesses and internal agents resolve business questions predictably.

Every tool request carries the caller’s verified OIDC identity (or workload identity for scheduled agents) and W3C traceparent header from the upstream client or gateway.

| Tool name | Purpose | Required inputs | Deterministic guarantees |
| --- | --- | --- | --- |
| search | Cross-object semantic and structured query across joined systems | query, optional object_types, filters, limit | Applies caller row policy, masks restricted columns, translates status codes |
| get_record | Fetch one canonical object instance by business key or URI | object_type, record_id | Returns governed fields, linked object summaries and active version id |
| lineage | Inspect exact source tables, join predicates and freshness for a result | result_id or object_type + record_id | Lists read replicas, declared vs. learned joins and dictionary versions used |
| explain_policy | Dry-run or post-hoc trace of why fields were shown, masked or withheld | principal (self or target in audit mode), query_or_action | Outputs matched IdP groups, row filters, masked columns and write-gate verdict |

## search and get_record request/response schemas (#search-and-get-record)

When an assistant invokes search or get_record, Naditu resolves synonyms and learned links inside the ontology, executes read-only queries against your internal replicas, strips withheld rows and replaces unauthorized fields with explicit "masked" markers rather than silently dropping schema structure.

Explicit masking prevents the calling LLM from hallucinating that a field is zero or missing in the database—it knows the field exists and is restricted for the current role.

### POST https://naditu.internal/mcp · tools/call (get_record)

```json
{
  "jsonrpc": "2.0",
  "id": "req_01948c2a",
  "method": "tools/call",
  "params": {
    "name": "get_record",
    "arguments": {
      "object_type": "Order",
      "record_id": "ORD-10482"
    }
  },
  "result": {
    "ontology_version": "v14",
    "object_type": "Order",
    "record_id": "ORD-10482",
    "attributes": {
      "customer": "Halvorsen Freight",
      "region": "EMEA",
      "due_date": "2026-06-11",
      "status_code": 4,
      "status_label": "shipped, not yet invoiced",
      "quoted_price": "EUR 48200",
      "unit_cost": "masked"
    },
    "linked_objects": {
      "customer_ref": "CUST-2231",
      "work_order_ref": "WO-8841"
    }
  }
}
```

## lineage and explain_policy contracts (#lineage-and-explain)

Operational teams only trust an AI answer when they can see which tables produced it. Calling lineage returns the exact source systems, replica lag, join path and confirmed term entries behind any record.

Calling explain_policy evaluates the ontology’s policy graph without exposing restricted data, allowing security engineers and users to verify why a row was filtered or why a write action requires human sign-off.

### POST https://naditu.internal/mcp · tools/call (lineage)

```json
{
  "tool": "lineage",
  "target": {
    "object_type": "Order",
    "record_id": "ORD-10482"
  },
  "ontology_version": "v14",
  "sources": {
    "crm": {
      "table": "account",
      "sync_mode": "CDC",
      "freshness_seconds": 4
    },
    "erp": {
      "table": "ORD_HDR, ORD_LIN, CUST",
      "access": "read_replica",
      "freshness_seconds": 2
    },
    "mes": {
      "table": "WO_HDR",
      "access": "read_replica",
      "freshness_seconds": 5
    }
  },
  "joins_applied": {
    "crm_to_erp": "account.erp_code = CUST.CODE (learned, confirmed)",
    "cust_to_order": "ORD_HDR.CUSTREF = CUST.REF (learned, confirmed)",
    "order_to_line": "ORD_LIN.ORD_ID = ORD_HDR.ID (declared FK)",
    "line_to_wo": "WO_HDR.LINREF = ORD_LIN.REF (learned, confirmed)"
  },
  "terms_applied": {
    "ORD_HDR.STAT=4": "shipped, not yet invoiced (v13)"
  }
}
```

## Plugging behind LiteLLM, Archestra and Kong (#gateway-architecture)

Enterprise IT teams often standardize on an MCP gateway or LLM proxy for centralized OAuth registration (including CIMD fetch-flood guards), rate limiting, token budgets and TLS termination. Gateways solve transport routing, but they do not know what ORD_HDR.STAT = 4 means or which cost columns belong to Finance.

Naditu sits cleanly behind LiteLLM, Archestra, Kong or internal agent harnesses as your governed operational domain server: the gateway forwards the verified OIDC subject token and W3C traceparent header, and Naditu enforces domain joins, row/column policies and ERP write gates.

- **Transport auth, rate limits & model routing (`Gateway responsibility`):** Terminates external client sessions, enforces OAuth / CIMD client policies, manages LLM provider keys and propagates W3C traceparent spans.
- **Semantic joins, row/field RBAC & ERP API gates (`Naditu responsibility`):** Resolves canonical objects over ERP/CRM/MES replicas, masks restricted columns per caller role and gates operational writes behind human approval.
