- add external retrieval and confirmation-gated writeback tools across MCP surfaces - port direct-search-first retrieval support and supporting ranking/query updates - update MCP docs and skills to treat agent memory files as optional reinforcement Generated with Claude Code
1.9 KiB
1.9 KiB
MCP Surface
RA-H exposes MCP tools for direct graph work against the local database or app API.
Core MCP Contract
queryNodesis the primary tool for direct node retrieval when the user is trying to find a specific existing node.retrieveQueryContextis the primary retrieval entrypoint for substantive current-turn work when the agent needs graph context to support a broader answer.getContextreturns graph orientation: stats, contexts, hubs, and skills.createNodeandupdateNodeaccept optionalcontext_idbut do not require context. Omittingcontext_idis the normal default.writeContextwrites one confirmed durable context node and must never be called before explicit user approval.queryNodessearches title, description, and source, with optional context filters.dimensionsare removed from the MCP contract.
Main Tools
Read:
retrieveQueryContextgetContextqueryNodesqueryContextsgetNodesByIdqueryEdgelistSkillsreadSkillsearchContentEmbeddingssqliteQuery
Write:
writeContextcreateNodeupdateNodecreateEdgeupdateEdgewriteSkilldeleteSkill
Tool Behavior
- Always search before creating.
- If the user is trying to find a specific existing node, use
queryNodesfirst. - If the user is asking a broader question that would benefit from graph context, use
retrieveQueryContext. - Prefer explicit context assignment only when the primary scope is clear and a real context is already known.
- Do not send
context_id: nullunless the tool call is intentionally clearing an existing context. - Do not assume the server will infer a best-fit context.
- Judge graph quality by node quality and edges, not taxonomy completeness.
- Keep writeback prompts terse and selective. The goal is not to ask constantly whether every useful sentence should be saved.