pk_search_acts

Pack: pakistan-law · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/pk_search_acts for the schema, then POST the same URL with its arguments for the data.

Search 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, Banking, Evidence, …). Returns act_id, title, category, citation (e.g. “XLV of 1860”) and promulgation date. Title words only, e.g. “penal”, “contract”, “evidence”.

Parameters

NameTypeRequiredDescription
querystringnoWords in the Act title, e.g. “penal code”.
yearstringnoFour-digit year of the Act, e.g. “1860”.
categorystringnoSubject category name or number, e.g. “Criminal” or “1”.
limitnumbernoMax results (default 20, max 100).

Example call

Arguments

{
  "query": "penal",
  "limit": 5
}

curl

curl -X POST https://gateway.pipeworx.io/pakistan-law/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pk_search_acts","arguments":{"query":"penal","limit":5}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('pk_search_acts', {
  "query": "penal",
  "limit": 5
});

Response shape

FieldTypeDescription
foundboolean
querystring
categorystring
yearnull
notestring
publisherstring
sourcestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "query": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "year": {
      "type": "null"
    },
    "note": {
      "type": "string"
    },
    "publisher": {
      "type": "string"
    },
    "source": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the pakistan-law pack
{
  "mcpServers": {
    "pakistan-law": {
      "url": "https://gateway.pipeworx.io/pakistan-law/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 11, 2026