memory-lean
v1.7.0Token-lean memory for AI agents: a knowledge graph searched cheaply.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_nodes
Find entities. Every term must appear in the name, type, an observation, or the type of a relation touching the entity (case-insensitive). Returns ranked names with matching snippets, at most 'limit' (default 10), then entities matching only in archived observations. open_nodes returns full entities.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | number | Max results (default 10, max 50) |
open_nodes
Return full entities by exact name, with every relation touching them. With related: true, related rules and pending work come first, each with its first fact.
| Parameter | Type | Description |
|---|---|---|
names * | array | |
related | boolean |
read_graph
Index of the graph: entity names grouped by type, with observation counts. Does not return observations; use open_nodes for those. Large types come as a count unless entityType names one.
| Parameter | Type | Description |
|---|---|---|
entityType | string | Only this type |
create_entities
Create entities; existing names are skipped. Each observation is one fact on one line: aim for under 150 characters, over 300 is rejected.
| Parameter | Type | Description |
|---|---|---|
entities * | array |
create_relations
Create relations (active voice, e.g. depends_on, blocks, applies_to); duplicates are skipped.
| Parameter | Type | Description |
|---|---|---|
relations * | array |
add_observations
Add observations to existing entities. One fact each, on one line: aim for under 150 characters, over 300 is rejected. Replace a stale fact with replace_observation rather than appending a correction. Entities over 15 observations have their oldest dated ones moved to archive/.
| Parameter | Type | Description |
|---|---|---|
observations * | array |
replace_observation
Replace one observation of an entity in place. 'old' is its exact text, or a part of it (8+ characters) found in no other observation of the entity.
| Parameter | Type | Description |
|---|---|---|
entityName * | string | |
old * | string | |
text * | string | The new observation |
archived_observations
List the observations of an entity that were moved to archive/, oldest first. Pass 'restore' with exact texts to move them back onto the entity.
| Parameter | Type | Description |
|---|---|---|
entityName * | string | |
query | string | Only archived observations containing every term |
restore | array |
rename_entity
Rename an entity, keeping its observations and every relation touching it. Fails if the new name is taken.
| Parameter | Type | Description |
|---|---|---|
name * | string | Current name |
newName * | string |
delete_entities
Delete entities and every relation touching them.
| Parameter | Type | Description |
|---|---|---|
entityNames * | array |
delete_observations
Delete observations from entities, each named by its exact text or by a part of it (8+ characters) found in no other observation of the entity.
| Parameter | Type | Description |
|---|---|---|
deletions * | array |
delete_relations
Delete specific relations.
| Parameter | Type | Description |
|---|---|---|
relations * | array |