Elasticsearch Knowledge Graph for MCP

by j3k0

create_relations

Create relationships between entities in knowledge graph (memory)

Input Schema

NameRequiredDescriptionDefault
auto_create_missing_entitiesNoWhether to automatically create missing entities in the relations (default: true)
memory_zoneNoOptional default memory zone specifier. Used if a relation doesn't specify fromZone or toZone.
relationsYesList of relations to create

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "auto_create_missing_entities": { "default": true, "description": "Whether to automatically create missing entities in the relations (default: true)", "type": "boolean" }, "memory_zone": { "description": "Optional default memory zone specifier. Used if a relation doesn't specify fromZone or toZone.", "type": "string" }, "relations": { "description": "List of relations to create", "items": { "properties": { "from": { "description": "Source entity name", "type": "string" }, "fromZone": { "description": "Optional zone for source entity, defaults to memory_zone or default zone. Must be one of the existing zones.", "type": "string" }, "to": { "description": "Target entity name", "type": "string" }, "toZone": { "description": "Optional zone for target entity, defaults to memory_zone or default zone. Must be one of the existing zones.", "type": "string" }, "type": { "description": "Relationship type", "type": "string" } }, "required": [ "from", "to", "type" ], "type": "object" }, "type": "array" } }, "required": [ "relations" ], "type": "object" }