GraphRAG: LLM-powered knowledge graph builder with MCP server, backed by Samyama
GraphRAG-RS provides 4 read-only graph query tools with complete JSON schemas and basic descriptions. All tools have input schemas with type definitions and required fields. However, descriptions are minimal (10-80 chars, well below the 194-char baseline), parameter descriptions lack depth and context, and output schemas are not documented. No error recovery guidance, no parameter constraints (enums, ranges), and no indication of when to use each tool vs. alternatives. Tools are well-named with action verbs (search_, find_, traverse_, graph_stats) but lack the LLM-optimized context needed for reliable tool selection.
Find all relationships connected to a specific entity
Get statistics about the knowledge graph (node count, edge count, labels, types)
Search for entities in the knowledge graph by name or description
Explore the neighborhood of an entity up to a given depth
Descriptions are too brief (10-80 chars vs. 194-char baseline). 'Search for entities...' and 'Find all relationships...' lack context on WHEN to use each tool, what distinguishes them, and what the LLM should expect. LLMs cannot reliably select between similar tools without richer guidance.
Parameter descriptions are missing or generic. 'query' has a description, but 'limit' (default 10) lacks guidance on valid range, impact of large values, or when to adjust. 'depth' (1-4) mentions the range in description but not in schema constraints. No enum or minmax validation in schemas.
Output schemas are not documented. Tools return JSON with 'columns' and 'rows' fields, but the LLM does not know the structure of each row, field types, or what IDs/references are included for chaining. This forces the LLM to guess at downstream tool calls.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | <=2025-11-25 | v2 |
No error recovery guidance. Code shows basic error handling (anyhow::bail for unknown tools, missing params), but tool descriptions do not explain what errors are possible, how to recover, or what to try next. LLMs receive raw errors with no actionable next steps.
SQL injection risk in Cypher query construction. Code uses string interpolation with basic escaping (replace('\'')), but does not use parameterized queries. Malicious input in 'query' or 'entity' params could break the Cypher syntax or cause injection attacks.