pk_get_act
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_act for the schema, then POST the same URL with its arguments for the data.
Overview 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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
act | string | no | Act title words, e.g. “Contract Act”. |
act_id | string | no | act_id from pk_search_acts. |
Example call
Arguments
{
"act": "Contract Act"
}
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_act","arguments":{"act":"Contract Act"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('pk_get_act', {
"act": "Contract Act"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
act_id | string | |
title | string | |
pages | number | |
characters | number | |
preamble | string | |
section_headings | array | |
headings_count | number | |
note | string | |
publisher | string | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"act_id": {
"type": "string"
},
"title": {
"type": "string"
},
"pages": {
"type": "number"
},
"characters": {
"type": "number"
},
"preamble": {
"type": "string"
},
"section_headings": {
"type": "array",
"items": {
"type": "string"
}
},
"headings_count": {
"type": "number"
},
"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.