wa_law_get_definition
Pack: wa-legislation · 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/wa_law_get_definition for the schema, then POST the same URL with its arguments for the data.
Return how a Western Australian Act in force defines a term, e.g. the definition of “employee” in the Industrial Relations Act 1979. Searches the Act’s definition entries and returns each matching definition with its sub-paragraphs and the section it appears in. Pass the Act title or act_id from wa_law_find_act.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
act | string | yes | Act title (e.g. “Industrial Relations Act 1979”) or act_id (e.g. “a380”). |
term | string | yes | The defined term, e.g. “employee”, “industrial matter”. |
all_sections | boolean | no | Read the whole Act and return every section that defines the term (slower; the publisher serves a large Act in about 15 seconds). Default false stops at the first defining section. |
Example call
Arguments
{
"act": "Industrial Relations Act 1979",
"term": "employee"
}
curl
curl -X POST https://gateway.pipeworx.io/wa-legislation/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"wa_law_get_definition","arguments":{"act":"Industrial Relations Act 1979","term":"employee"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('wa_law_get_definition', {
"act": "Industrial Relations Act 1979",
"term": "employee"
});
Response shape
| Field | Type | Description |
|---|---|---|
source | string | |
found | boolean | |
act | object | |
term | string | |
definitions | array | |
total_definitions | number |
Full JSON Schema
{
"type": "object",
"properties": {
"source": {
"type": "string"
},
"found": {
"type": "boolean"
},
"act": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"act_id": {
"type": "string"
},
"act_no": {
"type": "string"
},
"version": {
"type": "object",
"properties": {
"currency_start": {
"type": "string"
},
"current": {
"type": "boolean"
},
"suffix": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"term": {
"type": "string"
},
"definitions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"section": {
"type": "string"
},
"section_heading": {
"type": "string"
},
"schedule": {
"type": "null"
},
"definition": {
"type": "string"
},
"paragraph_count": {
"type": "number"
}
},
"additionalProperties": true
}
},
"total_definitions": {
"type": "number"
}
},
"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 wa-legislation pack
{
"mcpServers": {
"wa-legislation": {
"url": "https://gateway.pipeworx.io/wa-legislation/mcp"
}
}
}
See Getting Started for client-specific install steps.