read_rule_text

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

Read the text of a West Virginia administrative rule filing (the rule as filed). Takes a filing document id from get_rule. Returns the text in pages of characters with total length so long rules can be read in sequence via offset. Filings described “Modified File” are redlines (struck and inserted text both appear, e.g. old and new section numbers side by side); the “Agency Approved” and “Valid” filings are cleaner. Use to quote the exact supervision, scope-of-practice, or licensing requirement.

Parameters

NameTypeRequiredDescription
doc_idnumberyesFiling document id from get_rule, e.g. 59557.
offsetnumbernoCharacter offset to start from (default 0).
max_charsnumbernoCharacters to return (default 20000, max 40000).
findstringnoOptional: return the passages around this phrase instead of a linear page.

Example call

Arguments

{
  "doc_id": 59557,
  "find": "supervis",
  "max_chars": 3000
}

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":"read_rule_text","arguments":{"doc_id":59557,"find":"supervis","max_chars":3000}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('read_rule_text', {
  "doc_id": 59557,
  "find": "supervis",
  "max_chars": 3000
});

Response shape

FieldTypeDescription
doc_idnumber
pagesnumber
total_charsnumber
warningsarray
sourcestring
findstring
matchesnumber
passagesarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "doc_id": {
      "type": "number"
    },
    "pages": {
      "type": "number"
    },
    "total_chars": {
      "type": "number"
    },
    "warnings": {
      "type": "array",
      "items": {}
    },
    "source": {
      "type": "string"
    },
    "find": {
      "type": "string"
    },
    "matches": {
      "type": "number"
    },
    "passages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "at": {
            "type": "number"
          },
          "text": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "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