bd_law_search
Pack: bangladesh · 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/bd_law_search for the schema, then POST the same URL with its arguments for the data.
Search the Laws of Bangladesh (Ministry of Law, Justice and Parliamentary Affairs) for Acts and Ordinances by words in the title or text, in English or Bangla (e.g. “penal code”, “labour”, “দণ্ডবিধি”, “বাংলাদেশ শ্রম আইন”). Returns act_id, title, whether the register marks it repealed, and a text snippet; section-level hits are included unless scope is “acts”. Use act_id with bd_law_get.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Words from the Act title or text, English or Bangla, e.g. “Labour Act”. |
scope | string | no | ”all” (default) for Acts and section hits, or “acts” for Acts only. |
page | number | no | Result page, 20 per page (default 1). |
Example call
Arguments
{
"query": "penal code",
"scope": "acts"
}
curl
curl -X POST https://gateway.pipeworx.io/bangladesh/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bd_law_search","arguments":{"query":"penal code","scope":"acts"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('bd_law_search', {
"query": "penal code",
"scope": "acts"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
query | string | |
page | number | |
total_matches | number | null | |
returned | number | |
results | array | |
empty_reason | string | |
note | string | |
publisher | string | |
source | string | |
data_as_of | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"query": {
"type": "string"
},
"page": {
"type": "number"
},
"total_matches": {
"type": [
"number",
"null"
]
},
"returned": {
"type": "number"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"act_id": {
"type": "string"
},
"title": {
"type": "string"
},
"kind": {
"type": "string"
},
"path": {
"type": "string"
},
"repealed": {
"type": "boolean"
},
"snippet": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
}
},
"empty_reason": {
"type": "string"
},
"note": {
"type": "string"
},
"publisher": {
"type": "string"
},
"source": {
"type": "string"
},
"data_as_of": {
"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 bangladesh pack
{
"mcpServers": {
"bangladesh": {
"url": "https://gateway.pipeworx.io/bangladesh/mcp"
}
}
}
See Getting Started for client-specific install steps.