Skip to main content
MCP Documentation

Knowledge Graph Schemas

Formal schema for registering, querying, and deleting triples with provenance and governance metadata.

Triple model

`GraphTriple` includes subject, predicate, object, confidence score, and provenance references to maintain trust chains.

  • `confidence` ranges from 0-1 to indicate reliability.
  • `source_reference` links back to episodic or document stores.
  • `ttl` optional field controls expiration.

Query payload

`GraphQueryRequest` defines match patterns, traversal depth, filters, and aggregation instructions.

  • Supports sorting by freshness, confidence, or relationship weight.
  • `include_evidence` bundles source excerpts automatically.
  • `policy_context` enforces namespace-level permissions.