search_rules

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

Search West Virginia administrative rules (Code of State Rules) — the agency regulations that implement WV statutes, e.g. Board of Medicine physician-assistant supervision, nursing practice, professional-licensing requirements. Filter by agency (e.g. “Medicine”, “Registered Nurses, WV Board of”), title-series (e.g. “11-01B”), rule-name words, authorizing WV Code citation (e.g. “30-3E-3”), or full text of the rule documents. At least one filter is required. Returns counts by status first, then matching rule versions (active rules first). Use for “what does West Virginia require for X” when the answer is an agency rule rather than a statute; pair with wv_code_section for the statute and read_rule_text for the rule text.

Parameters

NameTypeRequiredDescription
agencystringnoAgency name as the register lists it, e.g. “Medicine”, “Osteopathic Medicine”, “Registered Nurses, WV Board of”, “Physical Therapy”.
title_seriesstringnoRule family, e.g. “11-01B” (title 11, series 01B = Board of Medicine physician assistants).
rule_namestringnoWords in the rule title, e.g. “physician assistants”.
authoritystringnoAuthorizing WV Code citation, e.g. “30-3E-3”.
full_textstringnoWords to find inside the rule documents, e.g. “collaborative agreement”.
full_text_modestringnoany = any of the words (default); literal = exact phrase.
statusstringnoRestrict by rule status. Omit for all versions (history included).
limitnumbernoRule versions to return (default 25, max ${MAX_ROWS}). Counts always cover every match.

Example call

Arguments

{
  "full_text": "physician assistant",
  "status": "Active Only",
  "limit": 10
}

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":"search_rules","arguments":{"full_text":"physician assistant","status":"Active Only","limit":10}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_rules', {
  "full_text": "physician assistant",
  "status": "Active Only",
  "limit": 10
});

Response shape

FieldTypeDescription
matchesnumber
by_statusobject
by_agencyobject
returnednumber
filters_triedobject
rulesarray
nextstring
data_as_ofstring
sourcestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "matches": {
      "type": "number"
    },
    "by_status": {
      "type": "object",
      "properties": {
        "Active": {
          "type": "number"
        }
      },
      "additionalProperties": true
    },
    "by_agency": {
      "type": "object",
      "properties": {
        "Osteopathic Medicine": {
          "type": "number"
        },
        "Medicine": {
          "type": "number"
        }
      },
      "additionalProperties": true
    },
    "returned": {
      "type": "number"
    },
    "filters_tried": {
      "type": "object",
      "properties": {
        "full_text": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "rules": {
      "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