Search knowledge graphs and follow every relation to the evidence behind it.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Optional: Bearer and the deployment's MCP token, to write. Reading public rooms needs none.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Read a Meaning-Space's health report when the user asks what is missing, duplicated or unsupported in a room. Input: namespace_id (optional), check_id with cursor to page one check's sample, as_of for the assessments. Returns read-only checks over the stored data, each with a severity, an exact count, a sample of at most 20 findings, a breakdown and a constant message, and attention, where evidence is thin, which proposes attention, not importance or truth. Nothing is repaired: report findings as facts about the data and propose each repair (curate_relation, a corrected bundle, a usage-notes edit) as its own step for the user. complete is false until the stored report exists, and stale is true once a write moved the revision past report_revision. Deterministic, no model call, nothing stored; without the MCP token it reads the public rooms. Pass a check's next_cursor as cursor with check_id to page on its sample; the other samples start from their first page. A cursor belongs to one check_id and as_of: INVALID_CURSOR for another check, request or room, GRAPH_GENERATION_CHANGED once the room's generation changed. as_of is the day (YYYY-MM-DD, UTC) the curated assessments are computed for, today by default. Graph checks (ISOLATED_NODE by reason, STATED_COUNT_MISMATCH, DUPLICATE_NAME, DUPLICATE_EDGE, SELF_LOOP, RELATION_TYPE_VARIANT, EDGE_WITHOUT_SOURCE, SOURCE_UNCITED) come from the report a CHECK_ROOM job stored for the active generation: every import queues one, and the owner recomputes with POST /v1/namespaces/{namespace_id}/health/checks. CURATED_TARGET_MISSING, CURATED_QUOTE_NOT_FOUND, CURATED_ASSESSMENT (for as_of), MEMORY_UNGROUNDED and ROOM_CARD_INCOMPLETE are computed at read time. attention lists nodes whose stated counts exceed their stored edges most and PROVISIONAL and UNSUPPORTED curated relations. Example: {"namespace_id": "obo-go", "check_id": "ISOLATED_NODE"}. Added in contract revision 4.4.0. Since contract revision 4.8.0 OBSOLETE_WITHOUT_SUCCESSOR lists obsolete nodes without a REPLACED_BY or CONSIDER edge whose name an active node of the room shares, with both ids. Since contract revision 4.8.1 each DUPLICATE_NAME finding carries id_case (SAME_EXTERNAL_ID, MISSING_EXTERNAL_ID or DISTINCT_EXTERNAL_IDS, from the external ids of every node of the group), and the check a by_case breakdown with every case. Each SELF_LOOP finding carries loop_case (SOURCE_STATED, ENDS_RESOLVED_TO_ONE_NODE or NOT_RECORDED, from the edge's stored record), and the check a by_case breakdown with every case. Since contract revision 4.9.0 a DUPLICATE_NAME finding lists every node of its group in detail.node_id_list (the finding's own id first, up to 50, node_ids_truncated when cut; the comma-separated node_ids string stays as a deprecated alias) and a DUPLICATE_EDGE finding every copy in edge_id_list; count is how many findings exist, sampled how many of them the pages reach in all (1000 for a stored check with more), sample this page's at most 20. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
Day (YYYY-MM-DD, UTC) of the curated assessments; today by default.
next_cursor of that check in the previous page of the same request.
The one check whose sample cursor pages.
Room name; omitted: the default room.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http byokg https://byokg.com/mcp
Headers
Authorization (optional, not in the config above): Optional: Bearer and the deployment's MCP token, to write. Reading public rooms needs none.Read a Meaning-Space's health report when the user asks what is missing, duplicated or unsupported in a room. Input: namespace_id (optional), check_id with cursor to page one check's sample, as_of for the assessments. Returns read-only checks over the stored data, each with a severity, an exact count, a sample of at most 20 findings, a breakdown and a constant message, and attention, where evidence is thin, which proposes attention, not importance or truth. Nothing is repaired: report findings as facts about the data and propose each repair (curate_relation, a corrected bundle, a usage-notes edit) as its own step for the user. complete is false until the stored report exists, and stale is true once a write moved the revision past report_revision. Deterministic, no model call, nothing stored; without the MCP token it reads the public rooms. Pass a check's next_cursor as cursor with check_id to page on its sample; the other samples start from their first page. A cursor belongs to one check_id and as_of: INVALID_CURSOR for another check, request or room, GRAPH_GENERATION_CHANGED once the room's generation changed. as_of is the day (YYYY-MM-DD, UTC) the curated assessments are computed for, today by default. Graph checks (ISOLATED_NODE by reason, STATED_COUNT_MISMATCH, DUPLICATE_NAME, DUPLICATE_EDGE, SELF_LOOP, RELATION_TYPE_VARIANT, EDGE_WITHOUT_SOURCE, SOURCE_UNCITED) come from the report a CHECK_ROOM job stored for the active generation: every import queues one, and the owner recomputes with POST /v1/namespaces/{namespace_id}/health/checks. CURATED_TARGET_MISSING, CURATED_QUOTE_NOT_FOUND, CURATED_ASSESSMENT (for as_of), MEMORY_UNGROUNDED and ROOM_CARD_INCOMPLETE are computed at read time. attention lists nodes whose stated counts exceed their stored edges most and PROVISIONAL and UNSUPPORTED curated relations. Example: {"namespace_id": "obo-go", "check_id": "ISOLATED_NODE"}. Added in contract revision 4.4.0. Since contract revision 4.8.0 OBSOLETE_WITHOUT_SUCCESSOR lists obsolete nodes without a REPLACED_BY or CONSIDER edge whose name an active node of the room shares, with both ids. Since contract revision 4.8.1 each DUPLICATE_NAME finding carries id_case (SAME_EXTERNAL_ID, MISSING_EXTERNAL_ID or DISTINCT_EXTERNAL_IDS, from the external ids of every node of the group), and the check a by_case breakdown with every case. Each SELF_LOOP finding carries loop_case (SOURCE_STATED, ENDS_RESOLVED_TO_ONE_NODE or NOT_RECORDED, from the edge's stored record), and the check a by_case breakdown with every case. Since contract revision 4.9.0 a DUPLICATE_NAME finding lists every node of its group in detail.node_id_list (the finding's own id first, up to 50, node_ids_truncated when cut; the comma-separated node_ids string stays as a deprecated alias) and a DUPLICATE_EDGE finding every copy in edge_id_list; count is how many findings exist, sampled how many of them the pages reach in all (1000 for a stored check with more), sample this page's at most 20. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
| as_of | string | Day (YYYY-MM-DD, UTC) of the curated assessments; today by default. |
| cursor | string | next_cursor of that check in the previous page of the same request. |
| check_id | string | The one check whose sample cursor pages. |
| namespace_id | string | Room name; omitted: the default room. |
{
"type": "object",
"required": [],
"properties": {
"as_of": {
"type": "string",
"format": "date",
"description": "Day (YYYY-MM-DD, UTC) of the curated assessments; today by default."
},
"cursor": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "next_cursor of that check in the previous page of the same request."
},
"check_id": {
"enum": [
"ISOLATED_NODE",
"STATED_COUNT_MISMATCH",
"DUPLICATE_NAME",
"OBSOLETE_WITHOUT_SUCCESSOR",
"DUPLICATE_EDGE",
"SELF_LOOP",
"RELATION_TYPE_VARIANT",
"EDGE_WITHOUT_SOURCE",
"SOURCE_UNCITED",
"CURATED_TARGET_MISSING",
"CURATED_QUOTE_NOT_FOUND",
"CURATED_ASSESSMENT",
"MEMORY_UNGROUNDED",
"ROOM_CARD_INCOMPLETE"
],
"type": "string",
"description": "The one check whose sample cursor pages."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
}
},
"additionalProperties": false
}Explore one node in a single call, when the user asks about a thing the room holds: the node by its reference, its relations per type and direction with counts, weight sums and the limit strongest partners, and its place in a sequence. Input: ref (required, as get_node takes it: external id, alt id, IRI, exact name or node_id), namespace_id, limit, relation_types and sequence_relation. Replaces search, get_node_stats and query_graph_neighbors for the first look at a node; paths stay with query_graph_paths. sequence comes from sequence_relation or the relations the room card declares, and is null when there is none: nothing is guessed. The bounds of get_node_stats; deterministic, no model call, nothing stored. sequence_relation names a relation type that orders nodes (NEXT_AYAH gives a verse's previous and next); without it the relations the room card declares in sequence_relations are used, and sequence is null when neither names one the node has an edge of. The reference resolves as in get_node. Several nodes on one side give the sibling and every candidate. sequence_direction: forward (the default, unless the room card declares the relation inverse) reads an edge from the earlier node to the later one; inverse reads a preceded-by relation, whose OUT edge is the node before. limit is the name every tool uses for the size of its answer (top_n is its deprecated alias; passing both is SCHEMA_VALIDATION_FAILED). Example: {"ref": "GO:0008150", "namespace_id": "obo-go"}. Added in contract revision 4.6.0. Since contract revision 4.7.0 nothing is guessed: sequence comes from sequence_relation or the card's sequence_relations, sequence_direction reads a preceded-by relation (inverse), candidates lists every node of a side with several, and ref resolves an alt id (resolved_by ALT_ID). Since contract revision 4.9.0 ref also resolves a record's iri property (resolved_by IRI), and limit is the name of top_n (kept as a deprecated alias). The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
Turn a path of stored edges the user picked into a research-plan scaffold, when the user wants to write up or test a chain of relations. Input: steps (required: edge ids from query_graph_paths or find_shortest_paths, or triples of from_ref, relation_type and to_ref with every ref as get_node takes it), question, hypothesis, format and namespace_id. Returns seven sections: the question, the evidence chain, the hypothesis marked HYPOTHESIS, gap candidates, empty slots for experiments and risks, the cited sources and what reproduces it. Each step continues where the one before ends, and nothing is filled in: a step that names no stored edge is CHAIN_STEP_NOT_STORED, a triple matching several edges CHAIN_STEP_AMBIGUOUS with the edges as candidates, a broken chain CHAIN_NOT_CONNECTED. One room per chain. Deterministic, read-only, no model call, nothing stored. A step may walk its edge against the stored direction (direction reverse); a triple must match exactly one stored edge, stored either way, and an edge id is the id query_graph_paths or find_shortest_paths gives, or the bundle's edge id. The answer's seven sections: the user's question, the evidence chain (relation types as stored), the user's hypothesis marked HYPOTHESIS and never among the evidence, find_gaps candidates at the chain's nodes (candidates, not facts), empty slots for experiments and risks, the cited sources with release and licence from the room's stored source metadata (NOT_STATED otherwise), and what reproduces it. format markdown adds it as one text with the user's text escaped; json gives the sections only. question and hypothesis are the user's own, plain text, escaped in markdown. Several rooms are not supported. Without the MCP token it reads the public rooms. Example: {"steps": [{"from_ref": "GO:0005739", "relation_type": "IS_A", "to_ref": "GO:0043231"}], "namespace_id": "obo-go"}. Added in contract revision 4.8.0. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
Read one piece of evidence in full by its id (a search hit's id, or a node_id) when you need the text behind a hit: the stored text and its provenance, never a generated answer or a provider credential. Input: id (required: a search hit's id, an evidence id, a node_id, or the next_id of the page before) and offset for a later page. Returns at most 30000 characters from offset (default 0) in text and the whole length in text_total_chars. A long text is paged, never cut silently: when text_truncated is true the evidence continues at next_offset (pass it as offset with the same id) or under next_id (pass it as id, nothing else). Read every page before treating the evidence as complete, and never quote beyond the page you read. Browser URL requires independent BYOKG session reauthorization. Evidence of an imported graph node carries node_id, the start for query_graph_neighbors and query_graph_paths; id also accepts a node_id. An episode can be as large as the upload that carried it and a note up to 262144 characters. offset is not used with a next_id, which already carries its offset; beyond the text it is SOURCE_OFFSET_OUT_OF_RANGE (422). Example: {"id": "<hit id>"}. Since contract revision 4.4.0 a long text is paged. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
| id* | string | A search hit's id, an evidence id, a node_id, or the next_id of the page before. |
| offset | integer | Character the page starts at: the next_offset of the page before. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "A search hit's id, an evidence id, a node_id, or the next_id of the page before."
},
"offset": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0,
"description": "Character the page starts at: the next_offset of the page before."
}
},
"additionalProperties": false
}List patterns in the stored data where an edge might be missing at one node, when the user asks what a term may lack or how complete a neighborhood is. Input: ref (required, as get_node takes it: external id, alt id, IRI, exact name or node_id), namespace_id, relation_types and limit. Returns candidates of two rules over the node's outgoing edges: SIBLING_PATTERN (most siblings under one IS_A parent satisfy a relation to a target the node does not) and TWO_HOP_ONLY (the node reaches a target through several intermediate nodes and no stored edge joins them). A candidate is a pattern, not a fact: report it as such, with the notice the answer carries, and never as a missing truth. Deterministic, read-only, no model call, no embedding, nothing stored; at most 20000 edges a call, truncated beyond. SIBLING_PATTERN needs at least min_share of a group of min_group siblings; TWO_HOP_ONLY needs at least min_support distinct intermediate nodes along one two-step path, neither step transitive. The defaults are global, the same for every room. Satisfied patterns (an edge to the target or to an IS_A descendant, a chain of a transitive relation, an edge an IS_A ancestor holds, a declared inverse) are never candidates, nor are obsolete nodes, the structural types and the card's sequence relations. relation_types limits the candidate relations (SIBLING_PATTERN: the relation; TWO_HOP_ONLY: both steps); satisfaction always reads every relation. The relations the room card declares derived from the data (derived_relations on get_room_overview, a co-occurrence count with its basis) are no step of TWO_HOP_ONLY unless relation_types names them, because almost every pair of nodes is two such edges apart; the answer lists them in derived_relation_types. The ref resolves as in get_node (alt ids, NODE_REF_AMBIGUOUS with its candidates). limit counts the candidates returned, in order; candidates_total counts them all, and limit is the name every tool uses for the size of its answer (top_n is its deprecated alias; passing both is SCHEMA_VALIDATION_FAILED). Without the MCP token it reads the public rooms. Example: {"ref": "CL:0000094", "namespace_id": "obo-cl"}. Added in contract revision 4.8.0. Since contract revision 4.9.0 limit is the name of top_n (kept as a deprecated alias). Since contract revision 4.9.2 the card's derived relations are skipped by TWO_HOP_ONLY unless named in relation_types, and derived_relation_types lists them. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
Find Meaning-Spaces by what they are about, when the user names a topic or asks which rooms exist; pass the chosen namespace_id to the other tools. Input: no required field; context ranks the rooms, limit and cursor page them. Returns rooms ranked for the given conversation context by deterministic word overlap with each room's title, name and description, each naming its visibility; score is overlap, not confidence, and an empty context lists every room by title. With the MCP token the user's own rooms, private and public, and every public room; without it the public rooms only. Show the ranked titles and let the user confirm. No model call sees the context and nothing is stored. When truncated, pass next_cursor as cursor (same context) for the next page. Use it when the user asks for a room or mentions a topic a room may cover; the chosen namespace_id goes to search, fetch, query_graph_neighbors, query_graph_paths or get_node_stats. context is what the user is working on or asking about, in their words; it is used only for lexical ranking. Example: {"context": "gene ontology biological process"}. (Named find_shared_rooms until contract 4.0.0.) The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Rooms per page. |
| cursor | string | next_cursor of the previous page of the same request. |
| context | string | What the user is asking about, in their words; used only for ranking. |
Find every shortest path between two nodes when the user asks how two things are connected. Input: both ends, each as a node_id (source_node_id, target_node_id) or as a reference as get_node takes it (source_ref, target_ref); namespace_id, max_hops, limit. Returns hops, the length found, and paths, every shortest path up to limit ordered by edge ids (paths_found counts them all). Each step is an EXISTING edge with its stable id, stored orientation, relation type and evidence references (fetch accepts the ids). An indirect A->B->C path is not an asserted A->C relation; label any such hypothesis NOT_CONFIRMED and cite the observed path. complete false with truncation_reasons means a budget ended the search, never that no connection exists; hops null with complete true means the data holds no path. No model, embedding, Graphiti or write call. The search runs from both ends by hops (the source side walks direction, the target side its reverse) within budgets of nodes, edge records and time and stops at the first depth the two sides meet, so a connection four or five hops away costs a few hundred nodes rather than a quarter of the room. An indirect path is graph evidence, never an asserted relation between its ends. truncation_reasons names a budget that ended the search (NODE_BUDGET, EDGE_WORK, DEADLINE, MAX_HOPS when the two sides do not meet within max_hops) or cut the answer (MAX_PATHS, when the list was cut; PATHS_SCAN). Warnings say when an end has no edges the way it is walked (ISOLATED_NODE, NO_OUTGOING_EDGES, NO_INCOMING_EDGES). For a curated relation a step carries its curation. relation_types restricts every hop. direction takes the values of query_graph_paths; each relationship reports its stored orientation whichever way it was walked. data_mode: one physical edge model per request; AUTO resolves the room's single data mode and fails with DATA_MODE_SELECTOR_REQUIRED when ambiguous. For the paths that lead from one node, use query_graph_paths. One of the two forms is required at each end, not both; the two ends are different nodes (INVALID_PATH_SELECTION otherwise). A reference resolves as get_node resolves ref (its external id as the bundle states it, such as GO:0008150, one of its alt_ids, its IRI, a name a property of exactly one node states, or a node_id), with NODE_REF_AMBIGUOUS and its candidates when several nodes match and GRAPH_NODE_NOT_FOUND when none does; the response's source_node_id and target_node_id are the nodes it resolved to. A node_id from another room is GRAPH_NODE_NOT_FOUND with a message saying so: a node_id belongs to one room, as search, get_node, neighbors or paths hand it out, never a physical graph key. limit is the name every tool uses for the size of its answer (max_paths is its deprecated alias; passing both is SCHEMA_VALIDATION_FAILED). Example: {"source_ref": "GO:0005739", "target_ref": "GO:0005737", "namespace_id": "obo-go"}. Added in contract revision 4.6.0. Since contract revision 4.9.0 either end may be given by reference (source_ref, target_ref), and limit is the name of max_paths (which stays as a deprecated alias). The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
Resolve one node by its id or an exact name, without a search, when the user names a thing the room holds (a verse by reference, a root by its letters, a term by its id). Input: ref (required: the external id as the bundle states it, one of its alt_ids, its IRI, an exact name, or a node_id) and namespace_id. Returns the node, its properties and external_id, and resolved_by, which says how the ref matched; explore returns it with its relations. Several nodes named so are NODE_REF_AMBIGUOUS with candidates, never a guess: pass the external id or a node_id. None is GRAPH_NODE_NOT_FOUND. Imported graph nodes; deterministic, no model call, nothing stored. The ref is the node's external id as the bundle states it (ayah:24:35 and r68 in the Quran graph, GO:0008150 in an ontology, a page's address in a vault), resolved by its digest in one lookup, else its node_id as search, neighbors and paths hand it out, else a name a property of exactly one node states (n-w-r, نور, part of, or the node's own name) while its name holds every word of it, the value typed as given before one equal only once folded; resolved_by says which. That is the only rank: the node's own name and another node's property rank alike, so a value one node states as its name and another in a property (n-s-y as a root's name and as another root's romanized_ascii) is NODE_REF_AMBIGUOUS with both as candidates, never a guess. Several nodes named so give the count: search for the name and pass a hit's node_id. Example: {"ref": "GO:0008150", "namespace_id": "obo-go"}. Added in contract revision 4.6.0. Since contract revision 4.7.0 ref also resolves one of a node's alt_ids (resolved_by ALT_ID), and an ambiguous name lists its candidates in the error. Since contract revision 4.9.0 ref also resolves the IRI a record states beside its id (resolved_by IRI): a converter that shortens an IRI to a CURIE keeps the IRI as the iri property, so both forms name the node. Since contract revision 4.9.2 the description states the rank between a name and another property (unchanged behaviour). The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|
Summarize one node's relations by type and direction (counts, weights, the strongest partners) without listing every edge; use it before query_graph_neighbors on a node with many edges. Input: node_id (required: this room's opaque node id from search, get_node, explore or paths) and namespace_id; limit sizes the answer. Returns per relation type and direction the count, the weight sum and the limit heaviest relations with the nodes they reach, and with group_by the reached nodes grouped by a second relation. Deterministic, no model call; at most 50,000 edges are read (NEIGHBORHOOD_TOO_LARGE: narrow by relation_types). A node without any edge returns warning ISOLATED_NODE with the reason its record gives (LEMMA_WITHOUT_ROOT). The heaviest relations show the strongest co-occurring roots, or a root's lemmas with their occurrence counts. node_id is the node_id of a search hit or source, or an id from overview, neighbors or paths. group_by groups the nodes one relation reaches by a second relation of theirs: relation_type OCCURS_IN, direction OUT, via_relation_type HAS_AYAH, via_direction IN gives a root's ayahs per surah. relation_types counts only relations of these types (for example CO_OCCURS or OCCURS_IN). Directions are seen from the near node; an undirected edge has no direction and matches OUT and IN. limit is the name every tool uses for the size of its answer (top_n is its deprecated alias; passing both is SCHEMA_VALIDATION_FAILED). Example: {"node_id": "<node_id>", "namespace_id": "obo-go"}. Since contract revision 4.9.0 limit is the name of top_n (kept as a deprecated alias). The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Heaviest relations to list per relation type and direction. |
| top_n | integer |
List what changed in a Meaning-Space since a cursor you kept, when a conversation returns to a room. Input: namespace_id (optional), since (a cursor you kept), cursor and limit. Returns the room's change feed, newest first, one event per import cutover, managed write, curated version, room-card change, visibility change and copy, each with its kind, the audited object's id, its time, content-free facts (counts, ids, enum values; never a text) and a cursor. Keep changes_cursor from get_room_overview (or newest_cursor from a feed) in your own memory and pass it as since next time to read only the events after it; the cursor outlives imports. Pass next_cursor as cursor to page towards older events. A public room lists only the events since it was published and never where a copy came from. Deterministic, no model call, nothing stored. Example: {"namespace_id": "obo-go", "since": "<changes_cursor>"}. Added in contract revision 4.4.0. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Events per page, newest first. |
| since | string | A cursor kept from an earlier read: only later events are listed. |
| cursor | string | next_cursor of the previous page, towards older events. |
| namespace_id | string | Room name; omitted: the default room. |
Read a Meaning-Space's card before using it for the first time in a conversation: its usage notes, data modes, counts and your access. Input: namespace_id (optional: the default room when omitted). Returns its title and the owner-written usage_notes (follow them for this room), data_modes and recommended_data_mode, whether MANAGED_MEMORY search is available right now (managed_search_available, with the reason in managed_search_blocked_by), exact node and edge counts, the most frequent relation types, evidence_count, last_activity_at, your access level (OWNER, GRANTED or PUBLIC) and whether the room is writable. known_limitations counts and lists the nodes without any edge. changes_cursor names the newest change event: keep it and ask get_room_changes with since next time. Deterministic, no model call, nothing stored. Omit namespace_id for the default room: the account's default room (or its only room) with the MCP token, the deployment's only public room without it (contract 4.6.0); NAMESPACE_SELECTOR_REQUIRED when several rooms could be meant. MANAGED_MEMORY search uses embeddings. The nodes known_limitations lists are such as lemmas whose root is null. Example: {"namespace_id": "obo-go"}. Since contract revision 4.8.1 known_limitations also counts, from the stored health check, the duplicate-name groups whose external ids differ or are missing (duplicate_names). It also counts the self-loops the source states (self_loops), kept as stated. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
| namespace_id | string | Room name; omitted: the default room. |
{
"type": "object",
"required": [],
"properties": {
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
}
},
"additionalProperties": false
}List the Meaning-Spaces the MCP token's account may use, when the user asks which rooms exist; without the token, find_rooms lists the public ones. Input: no required field; limit and cursor page the list. Returns only the account's authorized rooms, by stable account identity independent of OAuth token rotation, each naming its visibility (PUBLIC or PRIVATE); without the token the list holds the public rooms only, and _meta.auth says which caller you are. At most limit (100) rooms per page in name order; when truncated, pass next_cursor as cursor until it is null. Never return physical FalkorDB graph key. Example: {}. Since contract revision 4.9.0 every room names its visibility. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Rooms per page, in name order. |
| cursor | string | next_cursor of the previous page. |
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 100,
"maximum": 100,
"minimum": 1,
"description": "Rooms per page, in name order."
},
"cursor": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "next_cursor of the previous page."
}
},
"additionalProperties": false
}List the stored relations around one node, one page at a time, when you need the edges themselves (get_node_stats first when the node has many). Input: node_id (required: this room's opaque node id from search, get_node, explore or paths, never an external id) and namespace_id; limit pages. Returns each edge with its relation type, stored direction, weight (the bundle's strength, such as the shared-ayah count on CO_OCCURS) and properties, and the node it reaches; total counts every match. Filter by relation_types, labels of the far node and direction; sort_by weight (the default), degree or id. Pass next_cursor as cursor to page until it is null. Deterministic for one generation, no model call. A node without any edge returns warning ISOLATED_NODE with the reason its record gives (LEMMA_WITHOUT_ROOT), so an empty page is never silent. No answer synthesis. node_id is the node_id of a search or fetch result, or an id from overview, neighbors or paths, never a physical graph key. depth walks 1 or 2 hops. sort_by: weight lists the heaviest first (unweighted last), degree the best-connected far nodes first, id by far node id; ties by edge id, and hop 1 before hop 2; the same request on the same generation returns the same pages. direction is seen from the near node; an undirected edge has no direction and matches OUT and IN. labels are a bundle node's own labels, such as Root, Lemma, Ayah or Surah; relation_types for example CO_OCCURS or OCCURS_IN. Example: {"node_id": "<node_id>", "namespace_id": "obo-go", "limit": 20}. Since contract 4.3.0 curated relations (typed, versioned, evidence-backed edges kept over the imported graph, made with curate_relation) appear among the edges with layer CURATED and their curation: author, version, status and evidence. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
| Argument | Type | Description |
|---|---|---|
| depth | integer | Hops to walk from the node, 1 or 2. |
Follow stored relations from one node along paths of up to four hops, optionally to a target, when the user asks what a node leads to; find_shortest_paths answers how two named nodes connect. Input: the start as source_node_id (this room's opaque node id) or source_ref (as get_node takes it: external id, alt id, IRI, exact name or node_id), one of the two required; the end as target_node_id or target_ref; namespace_id, max_hops, limit. Returns bounded, ordered paths of EXISTING edges, each step with its stable id, stored orientation, type and evidence references (fetch accepts the ids). An indirect A->B->C path is not an asserted A->C relation; label any such hypothesis NOT_CONFIRMED and cite the observed path. An empty result with truncated=true means not found within the budget, never that no connection exists. When truncated, pass next_cursor as cursor until search_complete is true. No model, embedding, Graphiti or write call. Each step is a persisted edge with semantic type and authorized evidence references. Paths are bounded to the authorized Meaning-Space and come in one fixed, deterministic length-major order: every path of h hops before any of h+1, each group in the order of its prefix (every one-hop path, then the two-hop paths grouped by their first edge), so a page of three- or four-hop paths is reached with min_hops or by paging. Read page 1 as the strongest paths, not as all of them. A frontier three hops out is thousands of paths on an ontology: how two named nodes are connected is the question of find_shortest_paths, which searches from both ends and returns every shortest path in one call; this tool enumerates the paths from one node. min_hops lists a frontier alone: 2 lists only the paths through one node to the nodes beyond it, in the same order and pages as the full enumeration, which a first page of a node with more direct partners than limit never reaches (a page of a vault linking a hundred sites: the other pages that share one); 1, the default, lists the one-hop paths first; greater than max_hops is INVALID_GRAPH_BOUND. hop_relation_types names the types each hop may use (a meta-path), one entry per hop from the first; an empty entry means any type, and the hops beyond its length take relation_types: OCCURS_IN then HAS_AYAH walks from a lemma to its verses and on to their surahs. More entries than max_hops is INVALID_GRAPH_BOUND. relation_types restricts every hop to the given types (for example CO_OCCURS or OCCURS_IN), as query_graph_neighbors filters them. sort_by is the order edges are followed in at every node, which is the order paths are enumerated and paged in: weight, the default, follows the heaviest edge first (the bundle's weight, else count, else occurrences; unweighted edges last) with the edge id as the tie-breaker; id follows edge ids. Deterministic per generation. direction: OUTGOING follows a directed edge in its stored orientation, and an edge its bundle declares undirected from either end, as query_graph_neighbors treats it; INCOMING follows a directed edge against its stored orientation and BOTH either way, at every hop, so a node many edges end at (a class its subclasses point to) is a start too. Each relationship reports its stored orientation (source_id, target_id) and direction flag, whichever way it was walked, and carries its weight and the bundle's edge properties (weight_semantics when the bundle states it). data_mode: one physical edge model per request; AUTO resolves the room's single data mode and fails with DATA_MODE_SELECTOR_REQUIRED when ambiguous. When no path exists because an end node lacks edges, warnings say so (ISOLATED_NODE, NO_OUTGOING_EDGES, NO_INCOMING_EDGES) instead of a silent empty result. Curated relations are followed too (layer CURATED, unweighted, so after the weighted edges at a node), each with its curation (author, version, evidence) and source_refs to the room sources its evidence names. source_node_id is the node_id of a search or fetch result, or an id from overview, neighbors or paths, never a physical graph key; with target_node_id only observed paths ending at that node are returned. One of source_ref and source_node_id is required, not both, and at most one of target_ref and target_node_id: a reference resolves as get_node resolves ref (its external id as the bundle states it, such as GO:0008150, one of its alt_ids, its IRI, a name a property of exactly one node states, or a node_id), with NODE_REF_AMBIGUOUS and its candidates when several nodes match and GRAPH_NODE_NOT_FOUND when none does, and the response's source_node_id is the node it resolved to. A node_id from another room is GRAPH_NODE_NOT_FOUND with a message saying so: a node_id belongs to one room. limit is the name every tool uses for the size of its answer (max_paths is its deprecated alias; passing both is SCHEMA_VALIDATION_FAILED). Example: {"source_ref": "GO:0005739", "max_hops": 2, "namespace_id": "obo-go"}. Since contract 4.2.0 paths follow the heaviest edge first and an undirected edge is followed from either end. Since contract 4.3.0 paths also follow curated relations. Since contract revision 4.5.0 min_hops lists a frontier alone. Since contract revision 4.6.0 max_hops goes to 4, hop_relation_types types each hop, INCOMING and BOTH walk against the stored orientation, and a cursor carries one edge id per hop. Since contract revision 4.9.0 either end may be given by reference (source_ref, target_ref), and limit is the name of max_paths (which stays as a deprecated alias). The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
Search one Meaning-Space for evidence and graph nodes by words, a reference (2:190) or a name, to find where to start and what to cite. Input: query (required) and namespace_id (a room name from find_rooms; omitted means the default room). Returns bounded source and graph evidence, never a generated answer; a hit that records an imported graph node carries node_id: pass it to query_graph_neighbors (node_id) or query_graph_paths (source_node_id, target_node_id) to follow that node's relations. Imported graph search makes no model call, matches whole words and ranks by relevance; a reference query (2:190, 2:190-193) returns exactly those nodes in order. Without the MCP token a reader searches the imported graph only: MANAGED_MEMORY and ALL are refused with READER_SEARCH_IMPORTED_ONLY. When truncated, pass next_cursor as cursor (same query and mode) for the next page. Managed-memory search embeds the query with the server's embedding model (PROVIDER_SETUP_REQUIRED when none is configured) and ranks stored facts and evidence by keyword and similarity; every model call is billed to the operator, which is why a reader is refused it. data_mode: imported data is deterministic with no model, managed and mixed use the server's model provider, and there are no silent partial results. A query naming verse-style references (2:190, a range 2:190-193 or 2:190-2:193 within one chapter) first resolves through the nodes' reference property and returns exactly those nodes in reading order; words are searched only when no node has them. Imported hits name match_source, the field the query matched in (text_en; text_en_bracket when it matched only inside square brackets, words a translator added); exclude_brackets skips hits whose every match lies inside them (match_source ending in _bracket) and leaves the stored text unchanged. match: word (the default) requires every query word in the hit as a whole word or as a part of a hyphenated or apostrophe compound (light finds light and Allah's light, never flight or delighted), and a query word with a hyphen or apostrophe matches that whole compound (j-z-y); stem also folds the endings of the text's language: common English endings (lights, lighted, lighting find light), Arabic prefixes, pronouns and endings, and, since 4.3.2, German and Turkish endings where the property names the language (text_de, text_tr; a property with a code and no rules, text_fa, is never stemmed); substring is the containment of earlier revisions. Every mode folds the query and the stored text alike: compatibility forms, case, the optional diacritics of Latin, Greek, Cyrillic, Hebrew and Arabic (ḍ-w-ʾ is found as d-w-ʾ, ضَوْء as ضوء), the Arabic letter variants and the attached article (نور finds النور), Arabic-Indic digits, Katakana as Hiragana; a word of a script written without spaces (Chinese, Japanese, Thai) matches by containment. sort: relevance (the default) is BM25 over the hit's fields (its name weighs most; a list property such as roots is a set of values), plus the whole query as a phrase in one field and a field that is exactly the query, a word the query word starts (transgressors for transgress) counting half; ties in reading order. reference is reading order, a node's reference property in natural order (2:190 before 10:5), nodes without one after them by bundle id. node_id is by node id, the order of earlier revisions. The same request on the same generation returns the same pages; a reference query keeps its references' order. context: for each imported hit, this many nodes before and after it in reading order, returned in its context and marked CONTEXT, never counted as matches: the neighbours along the hit's sequence relation (a directed relation to nodes of its own label with at most one edge each way, such as NEXT_AYAH between ayahs), or along context_relation. verbosity: full, the default, keeps snippet as the whole record and record.properties whole. compact makes snippet the text a reader would quote (text_en, text, definition, description, summary or content, else the record's longest text, else its name; at most 1024 characters) and record.properties what names and what is quoted, in any bundle (the name, every string of at most 64 characters such as an identifier, a reference or a form, that one text, and every list of at most 32 short strings such as a verse's roots or a term's synonyms); numbers, other long texts and nested values are left to fields, which adds properties to record.properties in either verbosity (a name the record does not hold is ignored). It lists at most 5 of the focus's strongest relations per kind (its counts stay whole). linked: the nodes one relation links to each imported hit, as record.linked (name, node_id and the direction of each edge, the heaviest first), read per hit: a verse's roots (OCCURS_IN, IN, labels Root, since its lemmas occur in it by the same relation), a term's parents (IS_A, OUT), a page's sites (LINKS_TO); labels filters as query_graph_neighbors does. Example: {"query": "camphor metabolic process", "namespace_id": "obo-go"}. Since contract 4.3.0 imported search matches whole words (light never finds flight or delighted; match stem folds English endings, substring restores containment), ranks by relevance (sort relevance, the default; reference for reading order; node_id), names a root hit's match_source roots (never roots_bracket, so exclude_brackets keeps it), resolves a reference query (2:190, 2:190-193) to exactly those nodes in order, returns context nodes before and after each hit (context=N, marked CONTEXT, not matches), counts every hit (total), and on page 1 names the node the query denotes (focus: Root j-z-y with its occurrences and lemmas, a rare lemma such as jizyah located in 9:29, every place saying how, located_by EDGE, LIST, TEXT or STEM, and as what word; STEM means a word of the text inflects the member's form in the text's language, بَرْزَخًا for بَرْزَخ). Since contract revision 4.6.0 verbosity compact shapes each hit for reading (snippet the quotable text, record.properties what names and what is quoted), fields adds properties and linked the nodes one relation links to each hit, every imported hit carries record (its id, labels and properties as data), the node's own name names the focus, and focus_reason says why a focus is absent or taken among several. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
Say which version of the BYOKG API this server speaks and with which access you are reading it, before anything else in a conversation or whenever a response is hard to place. Input: nothing. Returns contract_revision (the one every response repeats in _meta), product_version, auth (TOKEN: the MCP token, every room the operator holds; ANONYMOUS: no credential, the PUBLIC rooms only), visible_rooms (how many rooms this caller may read; list_knowledge_graphs and find_rooms name them) and, for an anonymous caller, the hint that more rooms may be visible with the token. Never a room name, never a secret; deterministic, no model call, nothing stored. Example: {}. Added in contract revision 4.9.0. The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
No arguments.
{
"type": "object",
"properties": {},
"additionalProperties": false
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 24, 2026.
A very long tool description (over 4,000 characters) is hard to review and easy to hide instructions in.
Fix: Keep the description to what the tool does and when to use it; move reference material to resources or docs.
| ref* |
| string |
| External id, alt id, IRI, exact name or node_id. |
| limit | integer | Strongest partners per relation type and direction. |
| top_n | integer | Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted. |
| namespace_id | string | Room name; omitted: the default room. |
| relation_types | array | Count only relations of these types. |
| sequence_relation | string | Relation type whose edges order nodes; omitted: what the room card declares. |
| sequence_direction | string | forward: edges run from the earlier node. inverse: a preceded-by relation. |
{
"type": "object",
"required": [
"ref"
],
"properties": {
"ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "External id, alt id, IRI, exact name or node_id."
},
"limit": {
"type": "integer",
"default": 5,
"maximum": 20,
"minimum": 1,
"description": "Strongest partners per relation type and direction."
},
"top_n": {
"type": "integer",
"default": 5,
"maximum": 20,
"minimum": 1,
"deprecated": true,
"description": "Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
},
"relation_types": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 20,
"minItems": 1,
"description": "Count only relations of these types.",
"uniqueItems": true
},
"sequence_relation": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Relation type whose edges order nodes; omitted: what the room card declares."
},
"sequence_direction": {
"enum": [
"forward",
"inverse"
],
"type": "string",
"description": "forward: edges run from the earlier node. inverse: a preceded-by relation."
}
},
"additionalProperties": false
}| steps* |
| array |
| In order: edge ids or triples; each starts where the one before ends. |
| format | string | markdown adds one text; json gives the sections only. |
| question | string | The user's question, plain text. |
| hypothesis | string | The user's hypothesis, plain text; marked HYPOTHESIS. |
| namespace_id | string | Room name; omitted: the default room. |
{
"type": "object",
"required": [
"steps"
],
"properties": {
"steps": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "An edge id from the path tools, or the bundle's edge id."
},
{
"type": "object",
"required": [
"from_ref",
"relation_type",
"to_ref"
],
"properties": {
"to_ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "End node, as get_node's ref."
},
"from_ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "Start node, as get_node's ref."
},
"relation_type": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Relation type as stored."
}
},
"description": "A stored edge by its ends and type.",
"additionalProperties": false
}
]
},
"maxItems": 20,
"minItems": 1,
"description": "In order: edge ids or triples; each starts where the one before ends."
},
"format": {
"enum": [
"markdown",
"json"
],
"type": "string",
"default": "markdown",
"description": "markdown adds one text; json gives the sections only."
},
"question": {
"type": "string",
"maxLength": 4000,
"description": "The user's question, plain text."
},
"hypothesis": {
"type": "string",
"maxLength": 4000,
"description": "The user's hypothesis, plain text; marked HYPOTHESIS."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
}
},
"additionalProperties": false
}| Argument | Type | Description |
|---|---|---|
| ref* | string | External id, alt id, IRI, exact name or node_id. |
| limit | integer | Candidates to return, in order. |
| top_n | integer | Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted. |
| min_group | integer | SIBLING_PATTERN: fewest siblings that make a group. |
| min_share | number | SIBLING_PATTERN: share of siblings that must satisfy the relation. |
| min_support | integer | TWO_HOP_ONLY: fewest distinct intermediate nodes. |
| namespace_id | string | Room name; omitted: the default room. |
| relation_types | array | Only these candidate relations. |
{
"type": "object",
"required": [
"ref"
],
"properties": {
"ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "External id, alt id, IRI, exact name or node_id."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Candidates to return, in order."
},
"top_n": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"deprecated": true,
"description": "Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted."
},
"min_group": {
"type": "integer",
"default": 5,
"maximum": 1000,
"minimum": 2,
"description": "SIBLING_PATTERN: fewest siblings that make a group."
},
"min_share": {
"type": "number",
"default": 0.8,
"maximum": 1,
"minimum": 0.5,
"description": "SIBLING_PATTERN: share of siblings that must satisfy the relation."
},
"min_support": {
"type": "integer",
"default": 3,
"maximum": 1000,
"minimum": 2,
"description": "TWO_HOP_ONLY: fewest distinct intermediate nodes."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
},
"relation_types": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 20,
"minItems": 1,
"description": "Only these candidate relations.",
"uniqueItems": true
}
},
"additionalProperties": false
}{
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Rooms per page."
},
"cursor": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "next_cursor of the previous page of the same request."
},
"context": {
"type": "string",
"maxLength": 4096,
"description": "What the user is asking about, in their words; used only for ranking."
}
},
"additionalProperties": false
}| Argument | Type | Description |
|---|---|---|
| limit | integer | Shortest paths returned. |
| max_hops | integer | Longest path searched. |
| data_mode | string | Edge model to read; AUTO resolves the room's single mode. |
| direction | string | How a directed edge is walked from the source. |
| max_paths | integer | Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted. |
| source_ref | string | Start node by reference, as get_node's ref. |
| target_ref | string | End node by reference, as get_node's ref. |
| namespace_id | string | Room name; omitted: the default room. |
| relation_types | array | Only these relation types, at every hop. |
| source_node_id | string | Start node's node_id, or pass source_ref. |
| target_node_id | string | End node's node_id, or pass target_ref. |
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Shortest paths returned."
},
"max_hops": {
"type": "integer",
"default": 4,
"maximum": 6,
"minimum": 1,
"description": "Longest path searched."
},
"data_mode": {
"enum": [
"AUTO",
"IMPORTED_GRAPH",
"MANAGED_MEMORY"
],
"type": "string",
"default": "AUTO",
"description": "Edge model to read; AUTO resolves the room's single mode."
},
"direction": {
"enum": [
"OUTGOING",
"INCOMING",
"BOTH"
],
"type": "string",
"default": "OUTGOING",
"description": "How a directed edge is walked from the source."
},
"max_paths": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"deprecated": true,
"description": "Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted."
},
"source_ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "Start node by reference, as get_node's ref."
},
"target_ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "End node by reference, as get_node's ref."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
},
"relation_types": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 50,
"description": "Only these relation types, at every hop."
},
"source_node_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "Start node's node_id, or pass source_ref."
},
"target_node_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "End node's node_id, or pass target_ref."
}
},
"additionalProperties": false
}| ref* | string | External id, alt id, IRI, exact name or node_id. |
| namespace_id | string | Room name; omitted: the default room. |
{
"type": "object",
"required": [
"ref"
],
"properties": {
"ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "External id, alt id, IRI, exact name or node_id."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
}
},
"additionalProperties": false
}| Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted. |
| node_id* | string | This room's opaque node id, never an external id. |
| group_by | object | Group the nodes one relation reaches by a second relation of theirs. |
| namespace_id | string | Room name; omitted: the default room. |
| relation_types | array | Count only relations of these types. |
{
"type": "object",
"required": [
"node_id"
],
"properties": {
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Heaviest relations to list per relation type and direction."
},
"top_n": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"deprecated": true,
"description": "Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted."
},
"node_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "This room's opaque node id, never an external id."
},
"group_by": {
"type": "object",
"required": [
"relation_type",
"via_relation_type"
],
"properties": {
"limit": {
"type": "integer",
"default": 200,
"maximum": 500,
"minimum": 1,
"description": "Groups returned, the largest first."
},
"direction": {
"enum": [
"OUT",
"IN",
"BOTH"
],
"type": "string",
"default": "BOTH",
"description": "Seen from the near node; an undirected edge matches OUT and IN."
},
"relation_type": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Relation that reaches the nodes to group."
},
"via_direction": {
"enum": [
"OUT",
"IN",
"BOTH"
],
"type": "string",
"default": "BOTH",
"description": "Seen from the near node; an undirected edge matches OUT and IN."
},
"via_relation_type": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Second relation, which groups those nodes."
}
},
"description": "Group the nodes one relation reaches by a second relation of theirs.",
"additionalProperties": false
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
},
"relation_types": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 20,
"minItems": 1,
"description": "Count only relations of these types.",
"uniqueItems": true
}
},
"additionalProperties": false
}{
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 200,
"minimum": 1,
"description": "Events per page, newest first."
},
"since": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "A cursor kept from an earlier read: only later events are listed."
},
"cursor": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "next_cursor of the previous page, towards older events."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
}
},
"additionalProperties": false
}| limit | integer | Relations per page. |
| cursor | string | next_cursor of the previous page of the same request. |
| labels | array | Only relations whose far node has one of these labels. |
| node_id* | string | This room's opaque node id, never an external id. |
| sort_by | string | weight: heaviest first. degree: best-connected far nodes first. id: by far node id. |
| direction | string | Seen from the near node; an undirected edge matches OUT and IN. |
| namespace_id | string | Room name; omitted: the default room. |
| relation_types | array | Only relations of these types. |
{
"type": "object",
"required": [
"node_id"
],
"properties": {
"depth": {
"type": "integer",
"default": 1,
"maximum": 2,
"minimum": 1,
"description": "Hops to walk from the node, 1 or 2."
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 200,
"minimum": 1,
"description": "Relations per page."
},
"cursor": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "next_cursor of the previous page of the same request."
},
"labels": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 20,
"minItems": 1,
"description": "Only relations whose far node has one of these labels.",
"uniqueItems": true
},
"node_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "This room's opaque node id, never an external id."
},
"sort_by": {
"enum": [
"weight",
"degree",
"id"
],
"type": "string",
"default": "weight",
"description": "weight: heaviest first. degree: best-connected far nodes first. id: by far node id."
},
"direction": {
"enum": [
"OUT",
"IN",
"BOTH"
],
"type": "string",
"default": "BOTH",
"description": "Seen from the near node; an undirected edge matches OUT and IN."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
},
"relation_types": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 20,
"minItems": 1,
"description": "Only relations of these types.",
"uniqueItems": true
}
},
"additionalProperties": false
}| Argument | Type | Description |
|---|---|---|
| limit | integer | Paths per page. |
| cursor | string | next_cursor of the previous page of the same request. |
| sort_by | string | weight: heaviest edge first. id: by edge id. |
| max_hops | integer | Longest path listed. |
| min_hops | integer | Shortest path listed; 2 skips the one-hop paths. |
| data_mode | string | Edge model to read; AUTO resolves the room's single mode. |
| direction | string | How a directed edge is walked at every hop. |
| max_paths | integer | Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted. |
| source_ref | string | Start node by reference, as get_node's ref. |
| target_ref | string | End node by reference, as get_node's ref. |
| namespace_id | string | Room name; omitted: the default room. |
| relation_types | array | Only these relation types, at every hop. |
| source_node_id | string | Start node's node_id, or pass source_ref. |
| target_node_id | string | End node's node_id, or pass target_ref. |
| hop_relation_types | array | Relation types per hop, from the first; an empty entry means any. |
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 200,
"minimum": 1,
"description": "Paths per page."
},
"cursor": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "next_cursor of the previous page of the same request."
},
"sort_by": {
"enum": [
"weight",
"id"
],
"type": "string",
"default": "weight",
"description": "weight: heaviest edge first. id: by edge id."
},
"max_hops": {
"type": "integer",
"default": 2,
"maximum": 4,
"minimum": 1,
"description": "Longest path listed."
},
"min_hops": {
"type": "integer",
"default": 1,
"maximum": 4,
"minimum": 1,
"description": "Shortest path listed; 2 skips the one-hop paths."
},
"data_mode": {
"enum": [
"AUTO",
"IMPORTED_GRAPH",
"MANAGED_MEMORY"
],
"type": "string",
"default": "AUTO",
"description": "Edge model to read; AUTO resolves the room's single mode."
},
"direction": {
"enum": [
"OUTGOING",
"INCOMING",
"BOTH"
],
"type": "string",
"default": "OUTGOING",
"description": "How a directed edge is walked at every hop."
},
"max_paths": {
"type": "integer",
"default": 20,
"maximum": 200,
"minimum": 1,
"deprecated": true,
"description": "Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted."
},
"source_ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "Start node by reference, as get_node's ref."
},
"target_ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "End node by reference, as get_node's ref."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
},
"relation_types": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 20,
"minItems": 1,
"description": "Only these relation types, at every hop.",
"uniqueItems": true
},
"source_node_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "Start node's node_id, or pass source_ref."
},
"target_node_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "End node's node_id, or pass target_ref."
},
"hop_relation_types": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 50
},
"maxItems": 4,
"description": "Relation types per hop, from the first; an empty entry means any."
}
},
"additionalProperties": false
}| Argument | Type | Description |
|---|---|---|
| sort | string | relevance, reference (reading order) or node_id. |
| limit | integer | Results per page. |
| match | string | word: whole words. stem: also the language's endings. substring: containment. |
| query* | string | Words, a name or references (2:190, 2:190-193). |
| cursor | string | next_cursor of the previous page of the same request. |
| fields | array | Properties to add to record.properties. |
| linked | object | Nodes one relation links to each imported hit, as record.linked. |
| context | integer | Nodes to add before and after each hit in reading order, marked CONTEXT. |
| data_mode | string | IMPORTED_GRAPH calls no model; MANAGED_MEMORY and ALL need the MCP token. |
| verbosity | string | full keeps the whole record; compact what names and what is quoted. |
| namespace_id | string | Room name; omitted: the default room. |
| context_relation | string | Relation type context follows instead of the hit's sequence relation. |
| exclude_brackets | boolean | Skip imported hits that match only inside square brackets. |
{
"type": "object",
"required": [
"query"
],
"properties": {
"sort": {
"enum": [
"relevance",
"reference",
"node_id"
],
"type": "string",
"default": "relevance",
"description": "relevance, reference (reading order) or node_id."
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Results per page."
},
"match": {
"enum": [
"word",
"stem",
"substring"
],
"type": "string",
"default": "word",
"description": "word: whole words. stem: also the language's endings. substring: containment."
},
"query": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "Words, a name or references (2:190, 2:190-193)."
},
"cursor": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "next_cursor of the previous page of the same request."
},
"fields": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"maxItems": 20,
"description": "Properties to add to record.properties.",
"uniqueItems": true
},
"linked": {
"type": "object",
"required": [
"relation_type"
],
"properties": {
"limit": {
"type": "integer",
"default": 16,
"maximum": 64,
"minimum": 1,
"description": "Linked nodes per hit."
},
"labels": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 20,
"minItems": 1,
"description": "Keep only linked nodes with any of these labels.",
"uniqueItems": true
},
"direction": {
"enum": [
"OUT",
"IN",
"BOTH"
],
"type": "string",
"default": "BOTH",
"description": "Seen from the hit; an undirected edge matches OUT and IN."
},
"relation_type": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Relation to follow from each hit, as stored."
}
},
"description": "Nodes one relation links to each imported hit, as record.linked.",
"additionalProperties": false
},
"context": {
"type": "integer",
"default": 0,
"maximum": 10,
"minimum": 0,
"description": "Nodes to add before and after each hit in reading order, marked CONTEXT."
},
"data_mode": {
"enum": [
"AUTO",
"IMPORTED_GRAPH",
"MANAGED_MEMORY",
"ALL"
],
"type": "string",
"default": "AUTO",
"description": "IMPORTED_GRAPH calls no model; MANAGED_MEMORY and ALL need the MCP token."
},
"verbosity": {
"enum": [
"compact",
"full"
],
"type": "string",
"default": "full",
"description": "full keeps the whole record; compact what names and what is quoted."
},
"namespace_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Room name; omitted: the default room."
},
"context_relation": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "Relation type context follows instead of the hit's sequence relation."
},
"exclude_brackets": {
"type": "boolean",
"default": false,
"description": "Skip imported hits that match only inside square brackets."
}
},
"additionalProperties": false
}