get_rule

Pack: west-virginia-rules · 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/get_rule for the schema, then POST the same URL with its arguments for the data.

Get one West Virginia administrative rule family by title-series (e.g. “11-01B”): every version ever filed with its effective date, status (Active, Historical, Emergency), authorizing statute, and the filing history (modified/agency-approved/legislative-approval filings) with document ids that read_rule_text can open. Use after search_rules to see the current rule and what superseded it.

Parameters

NameTypeRequiredDescription
title_seriesstringnoRule family, e.g. “11-01B”.
documentnumbernoOptionally, a rule version document number from search_rules to list that version’s filings instead.

Example call

Arguments

{
  "title_series": "11-01B"
}

curl

curl -X POST https://gateway.pipeworx.io/west-virginia-rules/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_rule","arguments":{"title_series":"11-01B"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_rule', {
  "title_series": "11-01B"
});

Response shape

FieldTypeDescription
title_seriesstring
agencystring
current_versionobject
version_countnumber
filings_for_current_versionarray
all_versionsarray
nextstring
data_as_ofstring
sourcestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "title_series": {
      "type": "string"
    },
    "agency": {
      "type": "string"
    },
    "current_version": {
      "type": "object",
      "properties": {
        "agency": {
          "type": "string"
        },
        "title_series": {
          "type": "string"
        },
        "date_effective": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "rule_type": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "authority": {
          "type": "string"
        },
        "document": {
          "type": "number"
        }
      },
      "additionalProperties": true
    },
    "version_count": {
      "type": "number"
    },
    "filings_for_current_version": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date_filed": {
            "type": "string"
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          },
          "other_dates": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": "string"
          },
          "doc_id": {
            "type": "number"
          },
          "formats": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": true
      }
    },
    "all_versions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "agency": {
            "type": "string"
          },
          "title_series": {
            "type": "string"
          },
          "date_effective": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rule_type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "authority": {
            "type": "string"
          },
          "document": {
            "type": "number"
          }
        },
        "additionalProperties": true
      }
    },
    "next": {
      "type": "string"
    },
    "data_as_of": {
      "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 west-virginia-rules pack
{
  "mcpServers": {
    "west-virginia-rules": {
      "url": "https://gateway.pipeworx.io/west-virginia-rules/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 22, 2026