mi_admin_rule_search

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

Full-text search over the Michigan Administrative Code rule sets this pack has indexed (see mi_admin_rule). Use for “what Michigan rule covers X” when the exact citation is unknown, e.g. {query: “medication administration child caring institution”}. Searches rule headings and body text; returns matching citations with a snippet. Keyless.

Parameters

NameTypeRequiredDescription
querystringyesWords to search for, e.g. “medication storage” or “staff-to-resident ratio”.
limitnumbernoMax results (default 10, max 25).

Example call

Arguments

{
  "query": "medication administration child caring institution",
  "limit": 5
}

curl

curl -X POST https://gateway.pipeworx.io/michigan-code/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"mi_admin_rule_search","arguments":{"query":"medication administration child caring institution","limit":5}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('mi_admin_rule_search', {
  "query": "medication administration child caring institution",
  "limit": 5
});

Response shape

FieldTypeDescription
querystring
returnednumber
resultsarray
rule_sets_searchedarray
notestringPresent when returned is 0.
sourcestring
attributionstring
data_as_ofstring | null
foundbooleanFalse only when no rule set has a stored copy available.
reasonstring
messagestring
rule_sets_coveredarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "returned": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "citation": {
            "type": "string"
          },
          "ruleset": {
            "type": "string"
          },
          "heading": {
            "type": [
              "string",
              "null"
            ]
          },
          "snippet": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "rule_sets_searched": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "note": {
      "type": "string",
      "description": "Present when returned is 0."
    },
    "source": {
      "type": "string"
    },
    "attribution": {
      "type": "string"
    },
    "data_as_of": {
      "type": [
        "string",
        "null"
      ]
    },
    "found": {
      "type": "boolean",
      "description": "False only when no rule set has a stored copy available."
    },
    "reason": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "rule_sets_covered": {
      "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 michigan-code pack
{
  "mcpServers": {
    "michigan-code": {
      "url": "https://gateway.pipeworx.io/michigan-code/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 2, 2026