server-noonien

v1.3.0
io.github.sequico/server-noonien Checked 1 day ago Published 22 days ago

Shared, serverless, conflict-free knowledge-graph memory for AI agents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_entities Create Entities

Create multiple new entities in the knowledge graph. A name that already exists is skipped and left unchanged — use add_observations to extend it — and only the entities actually created are returned. Observations are stored exactly as given, duplicate contents included.

ParameterTypeDescription
entities *arrayThe entities to create, each with its name, type and observations

create_relations Create Relations

Create multiple new relations between entities in the knowledge graph. Relations should be in active voice. Both endpoints must already exist: one missing name fails the whole call with "Entity with name … not found". A relation that is already present is skipped, so the response lists only the ones added.

ParameterTypeDescription
relations *arrayThe relations to create, each with its from, to and relationType

add_observations Add Observations

Add new observations to existing entities in the knowledge graph. Content the entity already holds is not added again, while duplicates within one request are kept as separate occurrences; the response reports what was added per entity. Every named entity must exist — a missing one fails the whole call, so create it with create_entities first. To replace a content use update_observations, to remove one use delete_observations.

ParameterTypeDescription
observations *arrayOne entry per entity: the entity name and the contents to add

update_entities Update Entities

Prefer this to deleting an entity and re-creating it under another name: rename existing entities and/or change their entity type, keeping their observations and relations. A rename onto a name that already exists is refused rather than merging the two; an unknown name is reported and the batch keeps its other entries.

ParameterTypeDescription
entities *arrayOne entry per entity: the current name, and the new name and/or type

update_observations Update Observations

Prefer this to delete_observations followed by add_observations: replace observation contents on existing entities in place

ParameterTypeDescription
updates *arrayOne entry per replacement: the entity, the content to replace and the new content

update_relations Update Relations

Prefer this to deleting a relation and creating another: change the type of existing relations and/or repoint their endpoints. Each entry is matched by its current from, to and relationType; a missing match is reported, not thrown, so the batch keeps its other entries.

ParameterTypeDescription
relations *arrayOne entry per relation: its current from/to/relationType and the new values

merge_entities Merge Entities

Prefer this to deleting one entity and re-adding its observations and relations to another: merge an entity into another, unioning their observations and repointing its relations. The target keeps its name; the absorbed entity is deleted. It cannot be undone, so pass dryRun first to see the observations joined, the relations repointed and the name that disappears; find_duplicates proposes pairs that look like the same thing.

ParameterTypeDescription
merges *arrayOne entry per merge: the entity to absorb and delete, and the entity it merges into
dryRunbooleanReport what the merges would change, and write nothing; omit for a real merge

delete_entities Delete Entities

Delete multiple entities and their associated relations from the knowledge graph. Unknown names are ignored rather than failing, and the message reports how many were deleted and which were not found. The deletion also removes the entity's observations and its incident relations, and it is durable: a tombstone beats a concurrent write from another machine.

ParameterTypeDescription
entityNames *arrayAn array of entity names to delete

delete_observations Delete Observations

Delete specific observations from entities in the knowledge graph. Deletion is by content: every occurrence of that content on the entity goes. A batch is not all-or-nothing — the message reports how many were deleted and names the entities that were not found. To replace a content in place use update_observations; to remove the whole entity use delete_entities.

ParameterTypeDescription
deletions *arrayOne entry per entity: the entity name and the contents to delete

delete_relations Delete Relations

Delete multiple relations from the knowledge graph. A relation is matched by its from, to and relationType; one that matches nothing is ignored, and the message reports how many of the requested relations were deleted. Deleting an entity removes its incident relations with it, so this is for dropping one edge while both endpoints stay.

ParameterTypeDescription
relations *arrayAn array of relations to delete

read_graph Read Graph

Read the knowledge graph, or a page of it: the optional limit and offset take a slice of the entities in name order. Use it for the whole graph; for a query use search_nodes, for names you already know use open_nodes, and for the elements more than one node wrote use read_conflicts. A page carries the relations that touch its entities. To read only what changed since your last visit, use read_changes.

ParameterTypeDescription
limitintegerThe most entities to return; omit for all of them
offsetintegerHow many entities to skip before the page; omit for none

search_nodes Search Nodes

Search for nodes in the knowledge graph based on a query. The query is matched against entity names, types and observation content; entityType narrows to one exact type, and limit/offset page the matches in name order. For the whole graph use read_graph, and for names you already know use open_nodes. For a search written the way a query is spoken, use find_nodes: it matches whole words and ranks the results.

ParameterTypeDescription
query *stringThe search query to match against entity names, types, and observation content
entityTypestringOnly entities of this exact type; omit to match every type
limitintegerThe most entities to return; omit for all of them
offsetintegerHow many matches to skip before the page; omit for none

open_nodes Open Nodes

Open specific nodes in the knowledge graph by their names. Names that do not exist are omitted rather than failing, and the result carries every relation touching the entities returned, including relations to entities outside it. Use it when the names are known; for a query use search_nodes, for everything use read_graph.

ParameterTypeDescription
names *arrayAn array of entity names to retrieve

read_conflicts Read Conflicts

Call this when a write may have been superseded by another machine, or before trusting an edit: it lists the elements more than one node has written, with what each node left and when it last touched it, so a last-writer-wins resolution is visible instead of silent. Settle a contested element with resolve_conflict.

read_changes Read Changes

Read only what changed in a window you choose: the entities touched in it, as they are now, and the names deleted in it. Use it instead of read_graph when you are coming back to a memory you already know — the whole graph for two changed entities costs the context you came to use. The window reaches five minutes further back than you ask, so a change written by a peer with a slightly lagging clock is not lost, and reading the same window twice is harmless. It also returns until, the moment it stopped at, in this node's clock: pass that back as since and the next read continues from there.

ParameterTypeDescription
limitintegerThe most entities to return; omit for all of them
offsetintegerHow many entities to skip before the page; omit for none
sincestringThe ISO-8601 moment to read after; omit it for the last five minutes, or pass the moment a previous call returned to continue where that call stopped

find_nodes Find Nodes

Search the graph the way a query is written, not as a literal string: every word must match, a word matches the beginning of a longer one, and the best matches come first. Use it instead of search_nodes when the query is more than one word, or when a word may be spelled differently — ports for port. search_nodes is the literal-substring search and stays for exactly that. A word that matches nothing makes the result empty rather than failing the call.

ParameterTypeDescription
query *stringThe words to look for
entityTypestringKeep only entities of exactly this type; omit to match every type
limitintegerThe most entities to return; omit for all of them
offsetintegerHow many ranked results to skip before the page; omit for none

expand_nodes Expand Nodes

Walk out from the entities you name: every entity within depth hops, with the relations that touch them. Use it instead of read_graph to assemble the context around a topic, and instead of open_nodes when the neighbours' content matters as much as the entity you started from. The walk ignores direction, stops on cycles, and skips names that do not exist rather than failing. When limit binds, truncated is true and the farthest entities are the ones left out.

ParameterTypeDescription
names *arrayThe entities to start from
depthintegerHow many hops to walk, 1 by default and at most 5
limitintegerThe most entities to return, 200 by default

resolve_conflict Resolve Conflict

Settle an element that more than one machine has written: keep it or drop it with a stamp newer than anything in the log, so the decision wins on every node as the change propagates. Use it after read_conflicts named the element and you have decided how it should stand — re-creating it with the existing tools is not enough, because a write that already exists is skipped, and deleting what is already tombstoned changes nothing. An element that already stands as you ask is left untouched and reported as unchanged, because every write is durable history. An observation needs the entity to exist…

ParameterTypeDescription
elements *arrayOne entry per element: an observation or a relation, and whether it stands

find_duplicates Find Duplicates

Propose pairs of entities that may be the same thing, so merge_entities can be used on a pair you would not have noticed. With by: "name" the names are compared after case, spacing, punctuation and a known suffix such as .service are normalised, and overlapping observations raise the score; with by: "content" the observations are compared instead, which is how one fact written twice under two names is found. It is read-only. A score is a hint, not a verdict: read both entities before merging them.

ParameterTypeDescription
bystringWhat to compare: name (default) or content
limitintegerThe most pairs to return, 20 by default, best first
thresholdnumberThe lowest score to report, 0.75 by default

read_history Read History

Show what wrote an entity and when: the operations that touched it, newest first, with their timestamp, node and kind. Use it to tell a fact confirmed yesterday from one nobody has touched in months, which no other tool answers — read_conflicts covers only contested elements, and the graph itself carries no dates. For the current state use open_nodes; for what changed in a window use read_changes.

ParameterTypeDescription
entityNames *arrayThe entities to trace; a relation counts under both of its endpoints
limitintegerThe most operations to return, 50 by default and at most 500
offsetintegerHow many operations to skip before the page; omit for none

set_observations Set Observations

Keep one fact current: write key: value on an entity, replacing every observation that key already holds, so a drifted twin cannot survive. Use it instead of update_observations when the value changes over time — a version, a status — and you should not have to remember its previous text. An observation belongs to a key when it is exactly the key or starts with the key, a colon and a space, and a key may not itself contain a colon followed by a space. A missing entity fails as add_observations does: create it with create_entities first.

ParameterTypeDescription
entries *arrayOne entry per fact