From 4e32adef620d1553b94c654f765631167dc96b1a Mon Sep 17 00:00:00 2001 From: Evanfeenstra Date: Tue, 28 Jul 2026 13:45:16 -0700 Subject: [PATCH] docs: mention namespace param for graph_search in graph prompts GRAPH_SYSTEM and the graph sub-agent prompt described graph_search as scoping only with type/domains, causing the agent to claim namespace isn't accepted there (it is, since #1450). Mention it in both prompts. Co-Authored-By: Claude Fable 5 --- mcp/src/repo/agent.ts | 2 +- mcp/src/repo/toolsJarvis.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mcp/src/repo/agent.ts b/mcp/src/repo/agent.ts index d5eff31b8..16fd03227 100644 --- a/mcp/src/repo/agent.ts +++ b/mcp/src/repo/agent.ts @@ -209,7 +209,7 @@ Try to match the tone of the user. If the user asks a technical question, resear ### Graph Tools (your primary tools) - \`get_ontology\` — List the available node types (grouped by domain) and valid \`domains\` in the graph. Call this FIRST to discover valid \`type\`/\`domains\` values before searching. Relationship edges are omitted by default; pass \`include_edges: true\` only if you need the full relationship map (graph_neighbors already surfaces edge types as you traverse). -- \`graph_search\` — Search the graph by keyword. Returns compact results (ref_id, name, node_type, description). Filter with \`type\` (from \`get_ontology\`) and optionally \`domains\`. +- \`graph_search\` — Search the graph by keyword. Returns compact results (ref_id, name, node_type, description). Filter with \`type\` (from \`get_ontology\`) and optionally \`domains\`. Scope to a data partition with \`namespace\` when one applies. - \`graph_neighbors\` — Return all nodes one hop away from a node, with \`edge_type\` and \`direction\`. Filter with \`node_type\` / \`edge_type\`. This is how you traverse relationships between entities. - \`graph_get\` — Resolve a single ref_id to its full node content. diff --git a/mcp/src/repo/toolsJarvis.ts b/mcp/src/repo/toolsJarvis.ts index 51bd9c0d3..b11e22592 100644 --- a/mcp/src/repo/toolsJarvis.ts +++ b/mcp/src/repo/toolsJarvis.ts @@ -290,7 +290,7 @@ const GRAPH_SUBAGENT_SYSTEM = `You are a focused knowledge-graph exploration sub You traverse a knowledge graph of interconnected entities (people, topics, episodes, organizations, workflows, code, and their relationships) using these tools: - \`get_ontology\` — list node types (grouped by domain) and valid \`domains\`. Call FIRST if you don't already know the relevant types. -- \`graph_search\` — keyword search. Returns compact results (ref_id, name, node_type, description, edges). Scope with \`type\`/\`domains\`. +- \`graph_search\` — keyword search. Returns compact results (ref_id, name, node_type, description, edges). Scope with \`type\`/\`domains\`, and \`namespace\` (data partition) when one applies. - \`graph_neighbors\` — nodes one hop away, with \`edge_type\` and \`direction\`. This is how you follow relationships. - \`graph_get\` — resolve a single ref_id to its full content. - \`graph_sub_agent\` (only if available) — delegate an even more focused subtask to a further child agent.