ask MCP tool
for AI agents. Both enforce the same authorization rules, so an AI agent
never sees a result a human user of the same account couldn’t also see.
Searching from the dashboard
The Knowledge Base page is a simple search form: enter a natural-language query, optionally narrow to a specific project, and submit. Search is cross-project by default — it looks across every domain and project you have access to unless you supply a project filter. Each result shows:- Title and a short summary
- Relevance — the semantic match score for your query, as a percentage
- Confidence — the Document’s confidence score (its reviewer override if one has been set, otherwise the computed baseline), or “Unknown” if neither is available
- Health flags — any flags the Document currently carries (see The Document Review Workflow for what each flag means)
published Documents
are returned at all — this page never surfaces drafts.
The ask MCP tool
ask is a native tool of the
Knowledge Base MCP server — a separate service
from the Framework MCP server. (If you’re already connected to the
Framework MCP server for planning, its own
knowledge_ask tool proxies into ask for you — see
mcp-server-tools — so you don’t need a second
connection just to search.) For AI agents connected directly to the
Knowledge Base MCP server, the ask tool wraps the same semantic search:
Each result returned by
ask includes: documentId, title, summary,
score, confidence, and flags. Internal-only fields like domains and
projectId are intentionally stripped from the response before it’s
returned to the caller.
Authorization is enforced per result, not just at the tool-call level:
ask checks every result against the caller’s actual permissions and
filters out anything they’re not allowed to see before it’s ever included
in the response. Ranking order from the underlying search is preserved;
only unauthorized results are dropped.
Retrieving a Document in full: get_by_id
Where ask returns ranked summaries, get_by_id retrieves one Document’s
full content by its ID — the same shape the Knowledge Base’s own API
returns, since the Knowledge Base’s response is the full contract.
Authorization here depends on the Document’s status:
- Published Documents use the same visibility check as
ask. - Draft or deprecated Documents require reviewer or admin access — viewing an unpublished Document’s content is treated as a reviewer action, not a general read.
get_by_id
throws before constructing any response — it never returns a partial or
redacted Document, only a clean denial.
KB MCP tools reference
Two additional tools round out the Knowledge Base MCP server:kb_health_check— returns the authenticated caller’s identity, server status, and Knowledge Base database connectivity. It’s a scaffold/ diagnostic tool proving the MCP connection and auth are working end to end; it is not a real Knowledge Base capability and has been superseded byaskandget_by_id.get_by_id— described above.
draft to published in the first
place, see The Document Review Workflow. To connect
Claude Code directly to the Knowledge Base MCP server (rather than via the
Framework MCP server’s knowledge_ask proxy), see
Knowledge Base MCP Server Setup.