MCP server for Pakistani law — 967 federal statutes and 1,414 Supreme Court judgments, full text, corpus-based with a strict citation contract.
Strong domain-specific tool design with clear naming (verb_noun pattern: pk_search_laws, pk_get_law, pk_case_search, pk_get_decision, pk_verify_citations, pk_coverage). All 6 tools have descriptions (194 - 300 chars, within baseline 34 - 392 range). Input schemas present with type definitions and parameter descriptions. Output schemas documented in code comments and INSTRUCTIONS. Key strength: pk_verify_citations implements anti-hallucination pattern with structured gap reporting (out_of_corpus, unparseable_citation, etc.). Weakness: descriptions are functional but lack LLM-optimized guidance on WHEN to call each tool vs alternatives; no explicit error recovery hints in descriptions; pk_get_decision has optional parameters (row_idx vs case_id) but dependency not clearly stated in description.
Server-side full-text search over the Supreme Court judgments. Returns row_idx and case_id for each hit.
Declare what this connector covers, how it is sourced, and what it does not cover. Returns families of data (Federal statutes, Judgments) and known gaps with fallback sources.
One judgment's full text, by row_idx (preferred, from search results) or by case_id.
Full statute text by law_id. Large statutes are truncated at roughly 300,000 characters.
Keyword search over Pakistan's 967 federal statutes (title-weighted ranking).
Anti-hallucination check. Extracts Pakistani legal citations from any text and verifies each against the corpus: statute sections, act coordinates, Constitution articles, and Supreme Court registry citations.
pk_get_decision parameter dependency not documented: row_idx is 'preferred' but case_id is 'fallback', description does not state they are mutually exclusive or what happens if both are provided.
Tool descriptions lack WHEN-to-call guidance. E.g., pk_search_laws vs pk_case_search both search, but descriptions do not explain: search statutes for legislative text, search cases for judicial precedent. LLMs may conflate them.
Error handling descriptions missing from tool definitions. pk_verify_citations documents error semantics in INSTRUCTIONS (HALLUCINATION_DETECTED, NO_CITATIONS_FOUND, gaps) but not in the tool description itself. LLMs may not discover these recovery paths.
Truncation behavior not exposed in schema. pk_get_law truncates at ~300,000 chars but no output field signals truncation or provides continuation guidance. Agent cannot detect incomplete text.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 67 | 2026-07-28+ | v2 |
pk_coverage has empty input schema (no parameters) but description does not explain why or what it returns. LLMs may not understand it is a discovery/metadata tool.