Pretensor database knowledge graph — Kuzu-backed schema graph from precomputed DB introspection. Exposes graph tools and resources for discovering indexed databases, searching metadata, and fetching full context for physical tables.
Pretensor exposes 12 tools for schema exploration and validation. Tool names follow verb_noun convention (list, search, cypher, validate_sql) which is good. However, critical gaps undermine quality: (1) No visible input schemas in provided source, tool_registry.py shows McpTool dataclass accepts input_schema but actual schema definitions are not shown; (2) Descriptions are present but generic and brief (10-50 chars typical), lacking LLM-optimized context about WHEN to use each tool or what it returns; (3) No parameter documentation visible, descriptions do not explain what each parameter controls, valid ranges, or formats; (4) No output schema documentation, LLMs cannot infer what fields to expect from tools like 'context' or 'traverse'; (5) Error handling not visible, no recovery guidance or categorization. Tools are READ_ONLY which is good for safety, but the definitions lack the specificity needed for reliable agent selection and chaining.
Compile and validate metric SQL templates
Find downstream consumers of a table
Fetch full context for a physical table including columns, relationships, and metadata
Execute Cypher queries against the Kuzu schema graph
Detect schema changes between snapshots
Analyze downstream impact of changes to a table
List all indexed databases and their connection metadata
Fetch the full schema graph for a database connection
No input schemas visible in source code. McpTool.input_schema field exists but actual JSON Schema definitions for all 12 tools are not provided. Cannot verify parameter types, constraints, or descriptions.
Tool descriptions are generic and under 50 characters. Examples: 'List all indexed databases' (32 chars), 'Fetch the full schema graph' (28 chars). Descriptions lack context about WHEN to use each tool, what it returns, or how it differs from similar tools (e.g., search vs semantic_search).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 35 | 2026-07-28+ | v2 |
Keyword search over schema tables and entities using BM25 ranking
Semantic search over schema tables using embeddings
Traverse relationships in the schema graph from a starting table
Validate SQL syntax and check against schema
No output schema documentation visible. LLMs cannot infer what fields tools return. For example, 'context' tool description does not specify whether it returns column_names, relationships, metadata, or all three. This forces agents to guess or make wasteful discovery calls.
No error handling or recovery guidance visible. Tools are READ_ONLY (safe) but provide no documentation of failure modes, retryability, or what the LLM should do if a query fails (e.g., 'table not found, try search() first').
Parameter documentation missing. No visible descriptions of what parameters each tool accepts, their types, valid ranges, or formats. For example, 'cypher' tool likely accepts a query string but this is not documented.