pk_get_section

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_get_section for the schema, then POST the same URL with its arguments for the data.

Fetch 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 act_id from pk_search_acts, and the section number. Read live from the Ministry of Law and Justice’s published copy.

Parameters

NameTypeRequiredDescription
actstringnoAct title words, e.g. “Penal Code” (first match is used). Prefer act_id when ambiguous.
act_idstringnoact_id from pk_search_acts.
sectionstringyesSection number, e.g. “302” or “497A”.

Example call

Arguments

{
  "act": "Penal Code",
  "section": "302"
}

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_get_section","arguments":{"act":"Penal Code","section":"302"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('pk_get_section', {
  "act": "Penal Code",
  "section": "302"
});

Response shape

FieldTypeDescription
foundboolean
act_idstring
titlestring
sectionstring
textstring
truncatedboolean
notestring
publisherstring
sourcestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "act_id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "section": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "truncated": {
      "type": "boolean"
    },
    "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