FAI Legal Research
Pakistani case law and statutes: Supreme Court and High Court judgments, laws, drafting templates.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 get_statute_section 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"fai-legal": {
"url": "https://failegal.site/mcp"
}
}
}遠端端點
https://failegal.site/mcpstreamable-http它能做什麼
工具清單
工具(5)
🟢search_judgments(query, court, year_from, year_to, limit)
Find reported judgments (case law, precedents) of Pakistani courts: Supreme Court of Pakistan, Lahore, Sindh, Peshawar, Balochistan and Islamabad High Courts, Federal Shariat Court and others. Use for any request like "Supreme Court judgment on bike snatching", "case law on pre-arrest bail mala fide", "precedent on specific performance". Returns citation (e.g. 2022 SCMR 1577), court, year, parties, judges, provisions and headnote, ranked by relevance; off-topic matches are dropped, so an empty list means no on-point judgment was found. Pakistan only.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 3,
"maxLength": 300,
"description": "The legal issue or facts in plain English, e.g. \"motorcycle snatched at gunpoint robbery conviction\"."
},
"court": {
"description": "Only this court. Omit to search all Pakistani courts.",
"type": "string",
"enum": [
"Federal Constitutional Court",
"Supreme Court",
"Lahore High Court",
"Islamabad High Court",
"Peshawar High Court",
"Sindh High Court",
"Balochistan High Court",
"Federal Shariat Court",
"AJK courts",
"Gilgit-Baltistan",
"Tribunals"
]
},
"year_from": {
"description": "Earliest year of the report.",
"type": "integer",
"minimum": 1947,
"maximum": 2100
},
"year_to": {
"description": "Latest year of the report.",
"type": "integer",
"minimum": 1947,
"maximum": 2100
},
"limit": {
"default": 5,
"description": "How many judgments to return (max 5).",
"type": "integer",
"minimum": 1,
"maximum": 5
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"citation": {
"type": "string"
},
"court": {
"type": "string"
},
"year": {
"type": [
"number",
"null"
]
},
"decided_on": {
"type": [
"string",
"null"
]
},
"parties": {
"type": [
"string",
"null"
]
},
"judges": {
"type": [
"string",
"null"
]
},
"case_no": {
"type": [
"string",
"null"
]
},
"outcome": {
"type": [
"string",
"null"
]
},
"provisions": {
"type": "array",
"items": {
"type": "string"
}
},
"headnote": {
"type": [
"string",
"null"
]
},
"summary": {
"type": [
"string",
"null"
]
},
"relevance": {
"type": [
"number",
"null"
]
}
},
"required": [
"citation",
"court",
"year",
"decided_on",
"parties",
"judges",
"case_no",
"outcome",
"provisions",
"headnote",
"summary",
"relevance"
],
"additionalProperties": false
}
},
"note": {
"type": "string"
}
},
"required": [
"results",
"note"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢search_statutes(query, act, limit)
Find the sections of Pakistani laws relevant to a question: Pakistan Penal Code (PPC), Code of Criminal Procedure (CrPC), Code of Civil Procedure (CPC), the Constitution, Contract Act, Limitation Act, Qanun-e-Shahadat, family, tax, labour and provincial laws. Use for "punishment for snatching a motorcycle", "which section covers cheque dishonour", "bail in a non-bailable offence". Understands everyday words (murder finds qatl-i-amd, s.302 PPC). Returns section text with its citation.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 2,
"maxLength": 300,
"description": "The question or topic, or a section reference like \"section 302 PPC\"."
},
"act": {
"description": "Only search this act, e.g. \"Code of Criminal Procedure\".",
"type": "string",
"maxLength": 120
},
"limit": {
"default": 5,
"type": "integer",
"minimum": 1,
"maximum": 10
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"citation": {
"type": "string"
},
"act": {
"type": "string"
},
"section": {
"type": "string"
},
"heading": {
"type": [
"string",
"null"
]
},
"chapter": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
},
"scanned_copy": {
"type": "boolean"
}
},
"required": [
"citation",
"act",
"section",
"heading",
"chapter",
"text",
"scanned_copy"
],
"additionalProperties": false
}
},
"note": {
"type": "string"
}
},
"required": [
"results",
"note"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_statute_section(act, section)
Return the full text of one section or article of a Pakistani law when the act and number are known, e.g. act "PPC", section "392"; act "Constitution", section "199".
輸入結構描述
{
"type": "object",
"properties": {
"act": {
"type": "string",
"minLength": 2,
"maxLength": 120,
"description": "Act name or common short form: PPC, CrPC, CPC, Constitution, Contract Act, Qanun-e-Shahadat..."
},
"section": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"description": "Section or article number, e.g. \"489-F\", \"199\"."
}
},
"required": [
"act",
"section"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"message": {
"type": "string"
},
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"citation": {
"type": "string"
},
"act": {
"type": "string"
},
"section": {
"type": "string"
},
"heading": {
"type": [
"string",
"null"
]
},
"chapter": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
},
"scanned_copy": {
"type": "boolean"
}
},
"required": [
"citation",
"act",
"section",
"heading",
"chapter",
"text",
"scanned_copy"
],
"additionalProperties": false
}
},
"note": {
"type": "string"
}
},
"required": [
"found",
"sections",
"note"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_drafting_templates(filter)
List FAI's reviewed Pakistani legal drafting templates (legal notice, plaint, bail application, written statement, affidavit, agreements, family and rent matters and more). Use when the user wants to draft a Pakistani legal document; then call get_drafting_template with the chosen id.
輸入結構描述
{
"type": "object",
"properties": {
"filter": {
"default": "",
"description": "Optional words to narrow the list, e.g. \"bail\" or \"notice\".",
"type": "string",
"maxLength": 80
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"count": {
"type": "number"
},
"templates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"category": {
"type": "string"
},
"description": {
"type": "string"
},
"forum": {
"type": "string"
}
},
"required": [
"id",
"name",
"category",
"description",
"forum"
],
"additionalProperties": false
}
},
"note": {
"type": "string"
}
},
"required": [
"count",
"templates",
"note"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_drafting_template(template_id)
Return one reviewed template: its structure, the facts that must be collected first, and the standard wording for its Pakistani forum. Ask the user for any missing facts, never invent them, then fill the template.
輸入結構描述
{
"type": "object",
"properties": {
"template_id": {
"type": "string",
"minLength": 2,
"maxLength": 80,
"description": "An id from list_drafting_templates, e.g. \"legal-notice\"."
}
},
"required": [
"template_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"message": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"category": {
"type": "string"
},
"forum": {
"type": "string"
},
"template": {
"type": "string"
},
"note": {
"type": "string"
}
},
"required": [
"found",
"note"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社群
證據