create_relations
Establish connections between entities in the Elasticsearch Knowledge Graph for MCP by defining relationships, automating entity creation, and specifying memory zones for structured data organization.
Instructions
Create relationships between entities in knowledge graph (memory)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
auto_create_missing_entities | No | Whether to automatically create missing entities in the relations (default: true) | |
memory_zone | No | Optional default memory zone specifier. Used if a relation doesn't specify fromZone or toZone. | |
relations | Yes | List 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"
}