Trace has well-structured tool definitions with complete input schemas and clear descriptions. All 9 tools are explicitly registered with @mcp.tool() decorators, parameter types are properly declared, and descriptions explain purpose and usage. However, output schemas are not documented, LLMs cannot predict response structure. Parameter descriptions are adequate but lack actionable constraints (e.g., no enum for collection names, no format specs for ISO 8601 dates). Error handling guidance is absent. Tool naming is verb-first and clear, but some tools overlap in purpose (search, semantic_search, search_hybrid, keyword_search) without clear guidance on when to use each. The 'doctor' tool is well-designed for diagnostics but underutilized in the instructions.
Diagnose Trace configuration, corpus visibility, index health, and queries.
Retrieve full content of a document. Set `collection` to disambiguate.
Get statistics about search indexes. Set `collection` for a specific one.
Direct BM25 keyword search for exact terms, identifiers, and filenames.
List available documents. Set `collection` to filter by knowledge base.
Update search indexes after adding or changing documents.
Search knowledge bases. Default: adaptive BM25-first search with semantic/hybrid fallback. Set `collection` to target a specific knowledge base, or omit to search all. Optional filters: `path_prefix`, `extensions`, `since` (ISO 8601).
Output schemas not documented. LLMs cannot predict response structure or plan downstream tool calls. All 9 tools return str with no documented field structure.
Four overlapping search tools (search, semantic_search, search_hybrid, keyword_search) lack clear decision guidance. LLMs cannot determine which to call first without trial-and-error.
Parameter descriptions lack actionable constraints. 'collection' accepts null but no enum of valid names. 'since' accepts ISO 8601 but no format validation hint. 'path_prefix' and 'extensions' are arrays but no length/item constraints documented.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | B | 70 | 2026-07-28+ | v2 |
Combined semantic + keyword search. Use as fallback if `search` fails.
Search knowledge bases by semantic similarity.
No error handling guidance. Tools return str but no documentation of error format, recovery steps, or when to retry. LLMs cannot distinguish transient failures from user errors.
Pagination not explicitly supported. list_documents has 'limit' but no 'offset' or 'cursor' parameter. Large result sets may exceed context window without pagination guidance.