# MCP Memory Server Schema Documentation
This document describes the JSON schemas required for the `@modelcontextprotocol/server-memory` implementation used in this project.
## 1. Create Entities (`create_entities`)
**Tool:** `mcp__memory_server__create_entities`
**Correct JSON Structure:**
```json
{
"entities": [
{
"name": "Entity Name",
"entityType": "TypeString",
"observations": [
"Observation 1",
"Observation 2"
]
}
]
}
```
* **Critical Fields:**
* Use `entityType`, NOT `type`.
* Use `observations` (array of strings).
## 2. Add Observations (`add_observations`)
**Tool:** `mcp__memory_server__add_observations`
**Correct JSON Structure:**
```json
{
"observations": [
{
"entityName": "Entity Name",
"contents": [
"New observation text"
]
}
]
}
```
* **Critical Fields:**
* Use `contents` (array), NOT `content` (string).
## 3. Create Relations (`create_relations`)
**Tool:** `mcp__memory_server__create_relations`
**Correct JSON Structure:**
```json
{
"relations": [
{
"from": "Entity Name A",
"to": "Entity Name B",
"relationType": "Relation Name"
}
]
}
```