{"at":"2026-11-23T03:56:14.641Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T03:56:15.024Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"server-noonien","version":"1.3.0"}},"cacheScope":"private","capabilities":{"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Shared, conflict-free knowledge-graph memory — entities with observations, and typed relations between them — converged across machines without a server. The nine memory tools behave as in @modelcontextprotocol/server-memory. To change what already exists, do not compose delete + create: rename an entity or change its type with update_entities, replace an observation content with update_observations, change a relation's type or endpoints with update_relations, and combine two entities with merge_entities, which takes a dryRun when you want to see the bill first. For a large graph, page read_graph and search_nodes with limit/offset, and filter search_nodes by entityType. find_nodes searches the way a query is written — every word must match, results are ranked — while search_nodes is the literal substring. read_changes reads what moved in a window instead of the whole graph, expand_nodes walks a neighbourhood out from the entities you name, and find_duplicates proposes pairs that look like the same thing. To settle what two machines wrote, read_conflicts lists it with the values and the times and resolve_conflict decides it; read_history says who wrote an entity and when; set_observations keeps a key: value fact current.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T03:56:15.024Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T03:56:15.030Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"server-noonien","version":"1.3.0"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entities":{"description":"The entities to create, each with its name, type and observations","items":{"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"}},"required":["entities"],"type":"object"},"name":"create_entities","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"}},"required":["entities"],"type":"object"},"title":"Create Entities"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"relations":{"description":"The relations to create, each with its from, to and relationType","items":{"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["relations"],"type":"object"},"name":"create_relations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["relations"],"type":"object"},"title":"Create Relations"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"observations":{"description":"One entry per entity: the entity name and the contents to add","items":{"properties":{"contents":{"description":"An array of observation contents to add","items":{"type":"string"},"type":"array"},"entityName":{"description":"The name of the entity to add the observations to","type":"string"}},"required":["entityName","contents"],"type":"object"},"type":"array"}},"required":["observations"],"type":"object"},"name":"add_observations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"addedObservations":{"items":{"type":"string"},"type":"array"},"entityName":{"type":"string"}},"required":["entityName","addedObservations"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Add Observations"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entities":{"description":"One entry per entity: the current name, and the new name and/or type","items":{"properties":{"entityType":{"description":"The new entity type; omit to keep the current type","type":"string"},"name":{"description":"The current name of the entity to update","type":"string"},"newName":{"description":"The new name to rename the entity to; omit to keep the current name","type":"string"}},"required":["name"],"type":"object"},"type":"array"}},"required":["entities"],"type":"object"},"name":"update_entities","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"entityType":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string"},"renamedTo":{"type":"string"},"updated":{"type":"boolean"}},"required":["name","updated"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Update Entities"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Prefer this to delete_observations followed by add_observations: replace observation contents on existing entities in place","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"updates":{"description":"One entry per replacement: the entity, the content to replace and the new content","items":{"properties":{"entityName":{"description":"The name of the entity holding the observation","type":"string"},"newContent":{"description":"The content to replace it with","type":"string"},"oldContent":{"description":"The observation content to replace","type":"string"}},"required":["entityName","oldContent","newContent"],"type":"object"},"type":"array"}},"required":["updates"],"type":"object"},"name":"update_observations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"entityName":{"type":"string"},"newContent":{"type":"string"},"oldContent":{"type":"string"},"reason":{"type":"string"},"updated":{"type":"boolean"}},"required":["entityName","oldContent","newContent","updated"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Update Observations"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"relations":{"description":"One entry per relation: its current from/to/relationType and the new values","items":{"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"newFrom":{"description":"The new start entity; omit to keep the current one","type":"string"},"newRelationType":{"description":"The new relation type; omit to keep the current one","type":"string"},"newTo":{"description":"The new end entity; omit to keep the current one","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["relations"],"type":"object"},"name":"update_relations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"from":{"type":"string"},"reason":{"type":"string"},"relationType":{"type":"string"},"to":{"type":"string"},"updated":{"type":"boolean"}},"required":["from","to","relationType","updated"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Update Relations"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"dryRun":{"description":"Report what the merges would change, and write nothing; omit for a real merge","type":"boolean"},"merges":{"description":"One entry per merge: the entity to absorb and delete, and the entity it merges into","items":{"properties":{"from":{"description":"The name of the entity to merge in and delete","type":"string"},"into":{"description":"The name of the entity it is merged into","type":"string"}},"required":["from","into"],"type":"object"},"type":"array"}},"required":["merges"],"type":"object"},"name":"merge_entities","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"applied":{"type":"boolean"},"from":{"type":"string"},"into":{"type":"string"},"merged":{"type":"boolean"},"observationsJoined":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"reason":{"type":"string"},"relationsRepointed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"removedName":{"type":"string"}},"required":["from","into","merged"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Merge Entities"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entityNames":{"description":"An array of entity names to delete","items":{"type":"string"},"type":"array"}},"required":["entityNames"],"type":"object"},"name":"delete_entities","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["success","message"],"type":"object"},"title":"Delete Entities"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"deletions":{"description":"One entry per entity: the entity name and the contents to delete","items":{"properties":{"entityName":{"description":"The name of the entity containing the observations","type":"string"},"observations":{"description":"An array of observations to delete","items":{"type":"string"},"type":"array"}},"required":["entityName","observations"],"type":"object"},"type":"array"}},"required":["deletions"],"type":"object"},"name":"delete_observations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["success","message"],"type":"object"},"title":"Delete Observations"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"relations":{"description":"An array of relations to delete","items":{"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["relations"],"type":"object"},"name":"delete_relations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["success","message"],"type":"object"},"title":"Delete Relations"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"limit":{"description":"The most entities to return; omit for all of them","maximum":9007199254740991,"minimum":1,"type":"integer"},"offset":{"description":"How many entities to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"}},"type":"object"},"name":"read_graph","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["entities","relations"],"type":"object"},"title":"Read Graph"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entityType":{"description":"Only entities of this exact type; omit to match every type","type":"string"},"limit":{"description":"The most entities to return; omit for all of them","maximum":9007199254740991,"minimum":1,"type":"integer"},"offset":{"description":"How many matches to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"},"query":{"description":"The search query to match against entity names, types, and observation content","maxLength":2048,"type":"string"}},"required":["query"],"type":"object"},"name":"search_nodes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["entities","relations"],"type":"object"},"title":"Search Nodes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"names":{"description":"An array of entity names to retrieve","items":{"type":"string"},"type":"array"}},"required":["names"],"type":"object"},"name":"open_nodes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["entities","relations"],"type":"object"},"title":"Open Nodes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"read_conflicts","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"conflicts":{"items":{"additionalProperties":false,"properties":{"authors":{"items":{"additionalProperties":false,"properties":{"node":{"type":"string"},"ts":{"type":"string"},"value":{"type":"string"}},"required":["node","ts","value"],"type":"object"},"type":"array"},"element":{"type":"string"},"operations":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["element","authors","operations"],"type":"object"},"type":"array"}},"required":["conflicts"],"type":"object"},"title":"Read Conflicts"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"limit":{"description":"The most entities to return; omit for all of them","maximum":9007199254740991,"minimum":1,"type":"integer"},"offset":{"description":"How many entities to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"},"since":{"description":"The 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","type":"string"}},"type":"object"},"name":"read_changes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"deleted":{"items":{"type":"string"},"type":"array"},"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"},"since":{"type":"string"},"until":{"type":"string"}},"required":["entities","relations","since","until","deleted"],"type":"object"},"title":"Read Changes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entityType":{"description":"Keep only entities of exactly this type; omit to match every type","type":"string"},"limit":{"description":"The most entities to return; omit for all of them","maximum":9007199254740991,"minimum":1,"type":"integer"},"offset":{"description":"How many ranked results to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"},"query":{"description":"The words to look for","maxLength":2048,"type":"string"}},"required":["query"],"type":"object"},"name":"find_nodes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["entities","relations"],"type":"object"},"title":"Find Nodes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"depth":{"description":"How many hops to walk, 1 by default and at most 5","maximum":5,"minimum":1,"type":"integer"},"limit":{"description":"The most entities to return, 200 by default","maximum":9007199254740991,"minimum":1,"type":"integer"},"names":{"description":"The entities to start from","items":{"type":"string"},"type":"array"}},"required":["names"],"type":"object"},"name":"expand_nodes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"},"truncated":{"type":"boolean"}},"required":["entities","relations","truncated"],"type":"object"},"title":"Expand Nodes"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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, and a relation both of its endpoints, exactly as when they were created.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"elements":{"description":"One entry per element: an observation or a relation, and whether it stands","items":{"properties":{"content":{"description":"The observation content; give it with entityName","type":"string"},"entityName":{"description":"The entity that holds an observation; give it with content","type":"string"},"from":{"description":"The name where a relation starts; give it with to and relationType","type":"string"},"keep":{"description":"True to make the element stand, false to make it go","type":"boolean"},"relationType":{"description":"The relation type; give it with from and to","type":"string"},"to":{"description":"The name where a relation ends; give it with from and relationType","type":"string"}},"required":["keep"],"type":"object"},"type":"array"}},"required":["elements"],"type":"object"},"name":"resolve_conflict","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"changed":{"type":"boolean"},"element":{"type":"string"},"keep":{"type":"boolean"}},"required":["element","keep","changed"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Resolve Conflict"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"by":{"description":"What to compare: name (default) or content","enum":["name","content"],"type":"string"},"limit":{"description":"The most pairs to return, 20 by default, best first","maximum":9007199254740991,"minimum":1,"type":"integer"},"threshold":{"description":"The lowest score to report, 0.75 by default","maximum":1,"minimum":0,"type":"number"}},"type":"object"},"name":"find_duplicates","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"pairs":{"items":{"additionalProperties":false,"properties":{"a":{"type":"string"},"b":{"type":"string"},"reasons":{"items":{"type":"string"},"type":"array"},"score":{"type":"number"}},"required":["a","b","score","reasons"],"type":"object"},"type":"array"}},"required":["pairs"],"type":"object"},"title":"Find Duplicates"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entityNames":{"description":"The entities to trace; a relation counts under both of its endpoints","items":{"type":"string"},"type":"array"},"limit":{"description":"The most operations to return, 50 by default and at most 500","maximum":500,"minimum":1,"type":"integer"},"offset":{"description":"How many operations to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["entityNames"],"type":"object"},"name":"read_history","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entries":{"items":{"additionalProperties":false,"properties":{"detail":{"type":"string"},"entityName":{"type":"string"},"kind":{"type":"string"},"node":{"type":"string"},"ts":{"type":"string"}},"required":["entityName","ts","node","kind","detail"],"type":"object"},"type":"array"}},"required":["entries"],"type":"object"},"title":"Read History"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entries":{"description":"One entry per fact","items":{"properties":{"entityName":{"description":"The entity that holds the fact","type":"string"},"key":{"description":"The name of the fact, matched at the start of an observation","type":"string"},"value":{"description":"What the fact is now","type":"string"}},"required":["entityName","key","value"],"type":"object"},"type":"array"}},"required":["entries"],"type":"object"},"name":"set_observations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"action":{"enum":["added","replaced"],"type":"string"},"content":{"type":"string"},"entityName":{"type":"string"},"key":{"type":"string"}},"required":["entityName","key","content","action"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Set Observations"}],"ttlMs":0}}}
{"at":"2026-11-23T03:56:15.131Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T03:56:15.523Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Shared, conflict-free knowledge-graph memory — entities with observations, and typed relations between them — converged across machines without a server. The nine memory tools behave as in @modelcontextprotocol/server-memory. To change what already exists, do not compose delete + create: rename an entity or change its type with update_entities, replace an observation content with update_observations, change a relation's type or endpoints with update_relations, and combine two entities with merge_entities, which takes a dryRun when you want to see the bill first. For a large graph, page read_graph and search_nodes with limit/offset, and filter search_nodes by entityType. find_nodes searches the way a query is written — every word must match, results are ranked — while search_nodes is the literal substring. read_changes reads what moved in a window instead of the whole graph, expand_nodes walks a neighbourhood out from the entities you name, and find_duplicates proposes pairs that look like the same thing. To settle what two machines wrote, read_conflicts lists it with the values and the times and resolve_conflict decides it; read_history says who wrote an entity and when; set_observations keeps a key: value fact current.","protocolVersion":"2025-11-25","serverInfo":{"name":"server-noonien","version":"1.3.0"}}}}
{"at":"2026-11-23T03:56:15.523Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:56:15.523Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:56:15.529Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entities":{"description":"The entities to create, each with its name, type and observations","items":{"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"}},"required":["entities"],"type":"object"},"name":"create_entities","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"}},"required":["entities"],"type":"object"},"title":"Create Entities"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"relations":{"description":"The relations to create, each with its from, to and relationType","items":{"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["relations"],"type":"object"},"name":"create_relations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["relations"],"type":"object"},"title":"Create Relations"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"observations":{"description":"One entry per entity: the entity name and the contents to add","items":{"properties":{"contents":{"description":"An array of observation contents to add","items":{"type":"string"},"type":"array"},"entityName":{"description":"The name of the entity to add the observations to","type":"string"}},"required":["entityName","contents"],"type":"object"},"type":"array"}},"required":["observations"],"type":"object"},"name":"add_observations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"addedObservations":{"items":{"type":"string"},"type":"array"},"entityName":{"type":"string"}},"required":["entityName","addedObservations"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Add Observations"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entities":{"description":"One entry per entity: the current name, and the new name and/or type","items":{"properties":{"entityType":{"description":"The new entity type; omit to keep the current type","type":"string"},"name":{"description":"The current name of the entity to update","type":"string"},"newName":{"description":"The new name to rename the entity to; omit to keep the current name","type":"string"}},"required":["name"],"type":"object"},"type":"array"}},"required":["entities"],"type":"object"},"name":"update_entities","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"entityType":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string"},"renamedTo":{"type":"string"},"updated":{"type":"boolean"}},"required":["name","updated"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Update Entities"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Prefer this to delete_observations followed by add_observations: replace observation contents on existing entities in place","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"updates":{"description":"One entry per replacement: the entity, the content to replace and the new content","items":{"properties":{"entityName":{"description":"The name of the entity holding the observation","type":"string"},"newContent":{"description":"The content to replace it with","type":"string"},"oldContent":{"description":"The observation content to replace","type":"string"}},"required":["entityName","oldContent","newContent"],"type":"object"},"type":"array"}},"required":["updates"],"type":"object"},"name":"update_observations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"entityName":{"type":"string"},"newContent":{"type":"string"},"oldContent":{"type":"string"},"reason":{"type":"string"},"updated":{"type":"boolean"}},"required":["entityName","oldContent","newContent","updated"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Update Observations"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"relations":{"description":"One entry per relation: its current from/to/relationType and the new values","items":{"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"newFrom":{"description":"The new start entity; omit to keep the current one","type":"string"},"newRelationType":{"description":"The new relation type; omit to keep the current one","type":"string"},"newTo":{"description":"The new end entity; omit to keep the current one","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["relations"],"type":"object"},"name":"update_relations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"from":{"type":"string"},"reason":{"type":"string"},"relationType":{"type":"string"},"to":{"type":"string"},"updated":{"type":"boolean"}},"required":["from","to","relationType","updated"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Update Relations"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"dryRun":{"description":"Report what the merges would change, and write nothing; omit for a real merge","type":"boolean"},"merges":{"description":"One entry per merge: the entity to absorb and delete, and the entity it merges into","items":{"properties":{"from":{"description":"The name of the entity to merge in and delete","type":"string"},"into":{"description":"The name of the entity it is merged into","type":"string"}},"required":["from","into"],"type":"object"},"type":"array"}},"required":["merges"],"type":"object"},"name":"merge_entities","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"applied":{"type":"boolean"},"from":{"type":"string"},"into":{"type":"string"},"merged":{"type":"boolean"},"observationsJoined":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"reason":{"type":"string"},"relationsRepointed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"removedName":{"type":"string"}},"required":["from","into","merged"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Merge Entities"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entityNames":{"description":"An array of entity names to delete","items":{"type":"string"},"type":"array"}},"required":["entityNames"],"type":"object"},"name":"delete_entities","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["success","message"],"type":"object"},"title":"Delete Entities"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"deletions":{"description":"One entry per entity: the entity name and the contents to delete","items":{"properties":{"entityName":{"description":"The name of the entity containing the observations","type":"string"},"observations":{"description":"An array of observations to delete","items":{"type":"string"},"type":"array"}},"required":["entityName","observations"],"type":"object"},"type":"array"}},"required":["deletions"],"type":"object"},"name":"delete_observations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["success","message"],"type":"object"},"title":"Delete Observations"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"relations":{"description":"An array of relations to delete","items":{"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["relations"],"type":"object"},"name":"delete_relations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["success","message"],"type":"object"},"title":"Delete Relations"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"limit":{"description":"The most entities to return; omit for all of them","maximum":9007199254740991,"minimum":1,"type":"integer"},"offset":{"description":"How many entities to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"}},"type":"object"},"name":"read_graph","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["entities","relations"],"type":"object"},"title":"Read Graph"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entityType":{"description":"Only entities of this exact type; omit to match every type","type":"string"},"limit":{"description":"The most entities to return; omit for all of them","maximum":9007199254740991,"minimum":1,"type":"integer"},"offset":{"description":"How many matches to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"},"query":{"description":"The search query to match against entity names, types, and observation content","maxLength":2048,"type":"string"}},"required":["query"],"type":"object"},"name":"search_nodes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["entities","relations"],"type":"object"},"title":"Search Nodes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"names":{"description":"An array of entity names to retrieve","items":{"type":"string"},"type":"array"}},"required":["names"],"type":"object"},"name":"open_nodes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["entities","relations"],"type":"object"},"title":"Open Nodes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"read_conflicts","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"conflicts":{"items":{"additionalProperties":false,"properties":{"authors":{"items":{"additionalProperties":false,"properties":{"node":{"type":"string"},"ts":{"type":"string"},"value":{"type":"string"}},"required":["node","ts","value"],"type":"object"},"type":"array"},"element":{"type":"string"},"operations":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["element","authors","operations"],"type":"object"},"type":"array"}},"required":["conflicts"],"type":"object"},"title":"Read Conflicts"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"limit":{"description":"The most entities to return; omit for all of them","maximum":9007199254740991,"minimum":1,"type":"integer"},"offset":{"description":"How many entities to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"},"since":{"description":"The 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","type":"string"}},"type":"object"},"name":"read_changes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"deleted":{"items":{"type":"string"},"type":"array"},"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"},"since":{"type":"string"},"until":{"type":"string"}},"required":["entities","relations","since","until","deleted"],"type":"object"},"title":"Read Changes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entityType":{"description":"Keep only entities of exactly this type; omit to match every type","type":"string"},"limit":{"description":"The most entities to return; omit for all of them","maximum":9007199254740991,"minimum":1,"type":"integer"},"offset":{"description":"How many ranked results to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"},"query":{"description":"The words to look for","maxLength":2048,"type":"string"}},"required":["query"],"type":"object"},"name":"find_nodes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"}},"required":["entities","relations"],"type":"object"},"title":"Find Nodes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"depth":{"description":"How many hops to walk, 1 by default and at most 5","maximum":5,"minimum":1,"type":"integer"},"limit":{"description":"The most entities to return, 200 by default","maximum":9007199254740991,"minimum":1,"type":"integer"},"names":{"description":"The entities to start from","items":{"type":"string"},"type":"array"}},"required":["names"],"type":"object"},"name":"expand_nodes","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entities":{"items":{"additionalProperties":false,"properties":{"entityType":{"description":"The type of the entity","type":"string"},"name":{"description":"The name of the entity","type":"string"},"observations":{"description":"An array of observation contents associated with the entity","items":{"type":"string"},"type":"array"}},"required":["name","entityType","observations"],"type":"object"},"type":"array"},"relations":{"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation","type":"string"},"to":{"description":"The name of the entity where the relation ends","type":"string"}},"required":["from","to","relationType"],"type":"object"},"type":"array"},"truncated":{"type":"boolean"}},"required":["entities","relations","truncated"],"type":"object"},"title":"Expand Nodes"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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, and a relation both of its endpoints, exactly as when they were created.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"elements":{"description":"One entry per element: an observation or a relation, and whether it stands","items":{"properties":{"content":{"description":"The observation content; give it with entityName","type":"string"},"entityName":{"description":"The entity that holds an observation; give it with content","type":"string"},"from":{"description":"The name where a relation starts; give it with to and relationType","type":"string"},"keep":{"description":"True to make the element stand, false to make it go","type":"boolean"},"relationType":{"description":"The relation type; give it with from and to","type":"string"},"to":{"description":"The name where a relation ends; give it with from and relationType","type":"string"}},"required":["keep"],"type":"object"},"type":"array"}},"required":["elements"],"type":"object"},"name":"resolve_conflict","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"changed":{"type":"boolean"},"element":{"type":"string"},"keep":{"type":"boolean"}},"required":["element","keep","changed"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Resolve Conflict"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"by":{"description":"What to compare: name (default) or content","enum":["name","content"],"type":"string"},"limit":{"description":"The most pairs to return, 20 by default, best first","maximum":9007199254740991,"minimum":1,"type":"integer"},"threshold":{"description":"The lowest score to report, 0.75 by default","maximum":1,"minimum":0,"type":"number"}},"type":"object"},"name":"find_duplicates","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"pairs":{"items":{"additionalProperties":false,"properties":{"a":{"type":"string"},"b":{"type":"string"},"reasons":{"items":{"type":"string"},"type":"array"},"score":{"type":"number"}},"required":["a","b","score","reasons"],"type":"object"},"type":"array"}},"required":["pairs"],"type":"object"},"title":"Find Duplicates"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entityNames":{"description":"The entities to trace; a relation counts under both of its endpoints","items":{"type":"string"},"type":"array"},"limit":{"description":"The most operations to return, 50 by default and at most 500","maximum":500,"minimum":1,"type":"integer"},"offset":{"description":"How many operations to skip before the page; omit for none","maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["entityNames"],"type":"object"},"name":"read_history","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"entries":{"items":{"additionalProperties":false,"properties":{"detail":{"type":"string"},"entityName":{"type":"string"},"kind":{"type":"string"},"node":{"type":"string"},"ts":{"type":"string"}},"required":["entityName","ts","node","kind","detail"],"type":"object"},"type":"array"}},"required":["entries"],"type":"object"},"title":"Read History"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"entries":{"description":"One entry per fact","items":{"properties":{"entityName":{"description":"The entity that holds the fact","type":"string"},"key":{"description":"The name of the fact, matched at the start of an observation","type":"string"},"value":{"description":"What the fact is now","type":"string"}},"required":["entityName","key","value"],"type":"object"},"type":"array"}},"required":["entries"],"type":"object"},"name":"set_observations","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"results":{"items":{"additionalProperties":false,"properties":{"action":{"enum":["added","replaced"],"type":"string"},"content":{"type":"string"},"entityName":{"type":"string"},"key":{"type":"string"}},"required":["entityName","key","content","action"],"type":"object"},"type":"array"}},"required":["results"],"type":"object"},"title":"Set Observations"}]}}}
