wa_law_get_section

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

Return the text of one section of a Western Australian Act in force, e.g. section 7 (Terms used) of the Industrial Relations Act 1979. Pass the Act title or the act_id from wa_law_find_act, and the section number (“7”, “29B”). Returns the heading, Part/Division it sits in, the section text paragraph by paragraph, the drafting notes and amendment history, and the consolidated version it came from. Section text is truncated at max_chars with truncated=true.

Parameters

NameTypeRequiredDescription
actstringyesAct title (e.g. “Industrial Relations Act 1979”) or act_id (e.g. “a380”).
sectionstringyesSection number, e.g. “7”, “29B”, or “s 7”.
max_charsnumbernoTruncate section text at this many characters (500-100000, default 30000).

Example call

Arguments

{
  "act": "Industrial Relations Act 1979",
  "section": "7"
}

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_section","arguments":{"act":"Industrial Relations Act 1979","section":"7"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('wa_law_get_section', {
  "act": "Industrial Relations Act 1979",
  "section": "7"
});

Response shape

FieldTypeDescription
sourcestring
foundboolean
actobject
sectionstring
headingstring
partstring
textstring
paragraphsarray
paragraph_countnumber
truncatedboolean
notes_and_amendment_historyarray
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
    },
    "section": {
      "type": "string"
    },
    "heading": {
      "type": "string"
    },
    "part": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "paragraphs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "level": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "paragraph_count": {
      "type": "number"
    },
    "truncated": {
      "type": "boolean"
    },
    "notes_and_amendment_history": {
      "type": "array",
      "items": {
        "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 wa-legislation pack
{
  "mcpServers": {
    "wa-legislation": {
      "url": "https://gateway.pipeworx.io/wa-legislation/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 29, 2026