pa_code_search

Pack: pennsylvania-code · 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/pa_code_search for the schema, then POST the same URL with its arguments for the data.

Full-text search of the Pennsylvania Code (state administrative regulations). Returns matching sections with citation, heading and a snippet. Use for “which Pennsylvania regulation covers X”. Optional title restricts to one Code title (e.g. “25”). Pennsylvania Code regulations only; for statutes use pa_consolidated_statute. Keyless.

Parameters

NameTypeRequiredDescription
querystringyesWords or “quoted phrase” to find, e.g. “dam safety permit fees”.
titlestringnoOptional Pennsylvania Code title number to restrict to, e.g. “25” or “55”.
pagenumbernoResult page, 1-based (10 results per page). Default 1.

Example call

Arguments

{
  "query": "dam safety permit fees",
  "title": "25"
}

curl

curl -X POST https://gateway.pipeworx.io/pennsylvania-code/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pa_code_search","arguments":{"query":"dam safety permit fees","title":"25"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('pa_code_search', {
  "query": "dam safety permit fees",
  "title": "25"
});

Response shape

FieldTypeDescription
foundboolean
reasonstring | null
messagestring | null
querystring | null
titlestring | null
total_resultsnumber | null
countnumber | null
resultsarray | null
current_throughstring | null
data_as_ofstring | null
sourcestring | null
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "message": {
      "type": [
        "string",
        "null"
      ]
    },
    "query": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "total_results": {
      "type": [
        "number",
        "null"
      ]
    },
    "count": {
      "type": [
        "number",
        "null"
      ]
    },
    "results": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "citation": {
            "type": [
              "string",
              "null"
            ]
          },
          "heading": {
            "type": [
              "string",
              "null"
            ]
          },
          "snippet": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": true
      }
    },
    "current_through": {
      "type": [
        "string",
        "null"
      ]
    },
    "data_as_of": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "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 pennsylvania-code pack
{
  "mcpServers": {
    "pennsylvania-code": {
      "url": "https://gateway.pipeworx.io/pennsylvania-code/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 14, 2026