Git-backed, schema-validated documentation system maintained by AI agents and humans together
Sourcebook has 23 tools with consistent naming (verb_noun pattern: search, read, list, get, update, add, ingest, promote, rebuild, lint, semantic_lint, fanout, propose). Descriptions are present and substantive (100-300 chars typical), explaining WHAT and WHEN. However, input schemas are not visible in the provided source code, only parameter names and descriptions appear in the tool list. The mcp_server.py excerpt is truncated and does not show explicit JSON Schema registration. Output schemas are undocumented. Error handling guidance is minimal. Security considerations (git author validation, path traversal checks) are present in code but not surfaced in tool descriptions. Composition is strong: tools chain well (search → read_document, ingest_source → promote_to_doc), and most operations are idempotent or have confirmation patterns (propose_update). Risk classification (READ_ONLY vs WRITE) is explicit, which is excellent for agent safety.
Add or update a glossary term.
Analyze multiple sources for batch ingestion. Prepares analysis of multiple sources before creating/updating docs. Use with fanout_execute for batch ingestion workflows.
Execute batch ingestion based on fanout_analyze results. Creates and updates documents based on analysis from fanout_analyze.
Get a pre-assembled context bundle. Bundles combine multiple related documents into a single context block, optimized for AI consumption. Use this when working on a specific domain (e.g. CI/CD, backend, onboarding) to load all relevant docs at once.
Get the team conventions document (conventions.md).
Get glossary entries, optionally filtered by term.
Input schemas not visible in source code. Tool definitions show parameter names and descriptions but no explicit JSON Schema with type constraints, enums, or format declarations. Cannot verify schema completeness or validation rules.
Output schemas completely undocumented. Tool descriptions do not specify what fields are returned, their types, or structure. LLMs cannot plan downstream tool calls or extract required data without seeing response schemas.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | 2026-07-28+ | v2 |
Get the knowledge base index (index.md).
Get recent activity from the knowledge base log.
Ingest a raw source document (README, postmortem, notes, etc.). Stores the source in sources/ directory with metadata. Returns the source name for use in source summaries and citations.
Check for structural issues in the documentation. Reports orphaned documents, dependency mismatches, tag inconsistencies, and other structural problems. Use semantic_lint_analyze for deeper issues that require reasoning.
List all available context bundles.
List all decisions with their status.
List all documents, optionally filtered by type. Returns document names and brief descriptions.
List all ingested sources.
Create a new knowledge document from synthesized content. Use this when you've produced a valuable answer that combines multiple sources or reveals a non-obvious insight. The new doc will be created in knowledge/ with proper frontmatter.
Create a pending change for human review and approval. Instead of directly updating a document, propose the change for human review. The change enters a pending queue.
Read a specific document by its path. Returns the full content of the document including YAML frontmatter and markdown body. Use this after finding a document via search or list.
Rebuild the knowledge base index (index.md). Regenerates the auto-generated table of contents and commits it. Call this after making bulk changes to docs, not to browse them.
Search across all internal documentation. Searches system cards, process docs, decisions, API references, and glossary entries. Results are ranked by relevance. Use this when you need to find documentation about a topic. Each hit reports its score, and the response states how many matches exist in total — a broad term can match most of the corpus, so check the score gap before trusting the top result.
Analyze documentation for semantic issues. Identifies contradictions between docs, stale claims, coverage gaps, and source drift. Returns findings for review before applying fixes.
Apply fixes for semantic lint findings. Updates documents based on semantic lint analysis results.
Update an existing document or create a new one. Writes the document to disk and commits to git. Frontmatter is validated against the doc type schema. The index is rebuilt automatically after the write.
Mark a document as verified (update last_verified timestamp).
Error handling guidance absent. Tool descriptions do not explain what errors can occur, how to recover, or what the LLM should do next. Code shows path traversal validation and git error handling, but these are not surfaced in tool contracts.
Tool annotations (readOnlyHint, destructiveHint, idempotentHint) not declared in MCP schema. Risk field is present in tool list (READ_ONLY vs WRITE) but not formalized as MCP tool annotations per spec 2026-07-28.
Pagination not documented for list tools. list_documents, list_decisions, list_bundles, list_sources, get_recent_activity accept no limit/offset/cursor parameters visible in schema. Large result sets risk context window exhaustion.