Pakistan Law
liveGovernmentLegalDeveloperPakistan federal law — search the federal statute register and read one section of an Act, from the Ministry of Law and Justice, Government of Pakistan (The Pakistan Code).
Tools
pk_search_actsSearch Pakistan's federal statute register (The Pakistan Code, Ministry of Law and Justice) by words in the Act title, optionally filtered by year and subject category (Criminal, Civil, Family, Labour
No parameters required.
Try it
pk_get_sectionFetch the text of one section of a Pakistani federal Act, e.g. section 302 of the Pakistan Penal Code 1860 (punishment of qatl-i-amd) or section 497 CrPC. Give act (title words like "Penal Code") or a
No parameters required.
Try it
pk_get_actOverview of one Pakistani federal Act: page count, opening text (title, preamble) and the list of section headings, so you can pick a section for pk_get_section. Give act (title words) or act_id.
No parameters required.
Try it
pk_search_judgmentsSearch judgments of Pakistan's High Courts: Islamabad High Court, High Court of Sindh, Peshawar High Court and High Court of Balochistan (Lahore High Court returns an explicit unavailable result). Giv
No parameters required.
Try it
pk_get_judgmentRead the text of one Pakistani High Court judgment from the judgment_url returned by pk_search_judgments (Islamabad, Sindh, Peshawar or Balochistan). Returns extracted text in pages of max_chars with
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/pakistan-law/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/pakistan-law/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"pk_search_acts","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("pk_search_acts", {});// Or ask in plain English:
const answer = await px.ask("pakistan federal law — search the federal statute register and read one section of an act, from the ministry of law and justice, government of pakistan (the pakistan code)");