ok_statute
Pack: oklahoma-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/ok_statute for the schema, then POST the same URL with its arguments for the data.
Get the FULL TEXT of a section of the Oklahoma Statutes by citation, e.g. “21-701.7” (Murder in the First Degree) or “41-111” (termination of tenancy). Accepts “21-701.7”, “21 O.S. 701.7”, or “21 O.S. § 701.7”. Returns the current statutory text, its chapter breadcrumb, the “Cite as” line, its full amendment history (every amending Act), and a historical_versions list of every prior (superseded) version with a citeid you can pass back as version_citeid to retrieve that EXACT prior text. Keyless. Use for “what does 21 O.S. 701.7 say”, “Oklahoma murder statute”, or to check an Oklahoma statute a case or contract relies on, including how it read before a given amendment.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
citation | string | yes | Section citation as title-section, e.g. “21-701.7” or “41-111”. The title is the part before the dash/space and may carry a letter suffix (e.g. “10A-1” or “85A-45”). |
version_citeid | number | no | Optional. A “citeid” value from a previous result’s historical_versions array — fetches that superseded version’s exact text instead of the current one. When set, “citation” is optional (used only to label the response). |
Example call
Arguments
{
"citation": "21-701.7"
}
curl
curl -X POST https://gateway.pipeworx.io/oklahoma-code/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ok_statute","arguments":{"citation":"21-701.7"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ok_statute', {
"citation": "21-701.7"
});
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 oklahoma-code pack
{
"mcpServers": {
"oklahoma-code": {
"url": "https://gateway.pipeworx.io/oklahoma-code/mcp"
}
}
}
See Getting Started for client-specific install steps.