Grounded Q&A and renewal tracking over commercial lease contracts — a local RAG pipeline (Google Gemini) exposed both as a CLI and as an MCP server for Claude Code / Claude Desktop.
LeaseLens defines 4 tools with complete input schemas and descriptions. All tools follow verb_noun naming (search_leases, answer_lease_question, upcoming_renewals, list_contracts). Descriptions are clear and contextual (avg ~120 chars), explaining WHAT each tool does and WHEN to use it. However, output schemas are not formally documented, responses are free-text strings rather than structured objects. Parameter descriptions are present but minimal (e.g., 'top_k' lacks guidance on when to use 5 vs 20). Error handling returns isError=true with text messages, but lacks recovery guidance or categorization. No tool annotations (readOnlyHint, idempotentHint) despite all tools being read-only and deterministic.
Full retrieval-augmented answer: LeaseLens retrieves the relevant passages and uses Gemini to produce a grounded, cited answer.
List every contract in the knowledge base with its key commercial terms.
Semantic search over the commercial lease knowledge base. Returns the most relevant contract passages with citations, for you to reason over.
Deterministically list leases whose renewal-notice deadline falls within N days from today. Exact date math, not model-inferred.
Output schemas not formally documented. Tools return free-text strings (e.g., 'text' field in textResult) rather than structured objects with typed fields. LLMs cannot plan downstream operations or extract specific data without parsing unstructured text.
No tool annotations. All 4 tools are read-only and deterministic (idempotent), but lack readOnlyHint and idempotentHint annotations. Clients cannot distinguish safe tools from destructive ones without reading descriptions.
Error messages lack recovery guidance. errorResult() returns raw error text (e.g., 'Error: <message>') without suggesting next steps or categorizing errors as retryable vs user-fixable.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Parameter 'top_k' in search_leases lacks guidance on selection strategy. Description says 'default 5' but does not explain when to request 10 vs 20 results, or how score thresholds affect relevance.
list_contracts has empty inputSchema ({}). While this is valid for a no-argument tool, the description does not mention pagination or result limits. If the contract database grows large, responses could exceed context windows.