/mcp/full and the appropriate write
scopes. Identity maintenance is also available on /mcp/maintenance. HTTP
examples assume local SKIP_AUTH development; add a bearer token on an
authenticated server. Replace sample IDs with complete IDs from your responses.
Create an entity
Usecreate_entity_simple for a quick entity with auto-generated base fields.
- MCP Tool
- REST API
create_entity_simpleperson, org, topic, location, and domain. You can use any string as a type.
Create multiple entities at once
Usebatch_entities to create several entities in a single call.
- MCP Tool
- REST API
batch_entitiesCreate a relationship
Connect two entities with a typed, weighted relationship usingrelate_entities.
- MCP Tool
- REST API
relate_entitiesweight field (0.0 to 1.0) becomes the record’s confidence. The current convenience creation handler accepts but does not persist description, properties, valid_from, or valid_to. For a validity window, update the stored relationship’s validity_window field explicitly.
Understand manual evidence limits
relate_entities accepts evidence_text and evidence_source and creates a
manual assertion, but this convenience path does not validate the text against
an existing document revision. It records a span starting at byte zero; a
doc: ID is not resolved into that document’s revision and can leave the
assertion pointing at a generated revision ID with no stored evidence.
Use source ingestion for a relationship that must be
traceable to verified source material. For a direct operator assertion, retain
its manual origin and do not describe the supplied string as a verified
citation merely because the write succeeded.
Upsert a relationship
Useupsert_relationship to create a new relationship or update an existing one matching the same from_id, to_id, and rel_type triple.
- MCP Tool
upsert_relationshipupdate_relationship with serialized record fields such as confidence, status, or validity_window. The upsert creation path currently ignores its fields object.
View an entity with its relationships
Retrieve an entity with its incoming and outgoing relationships. For the HTTP example, setENTITY_ID to the complete entity ID saved from creation.
- MCP Tool
- curl
get_entity_with_relationsPropose a duplicate (identity resolution)
When you suspect two entities refer to the same real-world thing, propose them as an identity candidate.- MCP Tool
propose_identity_candidateReview identity candidates
List pending merge candidates, optionally filtered by confidence threshold.- MCP Tool
list_identity_candidatesMerge entities
Merge two entities into one. Thestrategy controls which entity’s fields take precedence on conflicts.
- MCP Tool
- curl
merge_entities
After a successful MCP merge, read
data.survivor.id and fetch that entity
again to verify its relationships. With prefer_newer, do not assume that
entity A survived.
The REST merge endpoint instead accepts keep_a, keep_b, or combine (create a new combined entity). See identity resolution.
Next steps
- Truth slots — Understand how extracted assertions compete for truth
- Searching — Find entities and relationships across the graph
- Event streaming — Monitor changes to the knowledge graph
