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
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)");