tx_statute_search
Pack: texas-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/tx_statute_search for the schema, then POST the same URL with its arguments for the data.
Find which sections of one chapter of a Texas code mention a keyword, e.g. Insurance Code (IN) chapter 544 (prohibited discrimination) with query “age condition”, or chapter 2210 (windstorm association) with “roof”. Returns each matching section with its citation, heading and a text excerpt around the first hit (use tx_statute for the full text). Reads ONE chapter per call (one publisher fetch from the Texas Legislative Council, kept in memory for an hour); there is no code-wide search, so name the chapter. match “all” (default) needs every word in the section, “any” needs one; words match whole words with a plural, -ed or -ing ending, so “roof” finds roofs and roofing but “age” does not match “agent”. Keyless.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
code | string | yes | Texas code abbreviation, e.g. “IN” (Insurance), “PE” (Penal), “FA” (Family), “BC” (Business and Commerce). Call tx_codes to see them. |
chapter | string | yes | Chapter number as cited, e.g. “544” (Insurance Code, prohibited discrimination) or “19”. |
query | string | yes | One or more words to look for in the section text, e.g. “roof” or “age condition”. |
match | string | no | ”all” (default): every word must appear in the section. “any”: at least one. |
limit | number | no | Maximum sections returned (default 20, max 60). |
Example call
Arguments
{
"code": "IN",
"chapter": "544",
"query": "age condition",
"match": "any",
"limit": 3
}
curl
curl -X POST https://gateway.pipeworx.io/texas-code/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"tx_statute_search","arguments":{"code":"IN","chapter":"544","query":"age condition","match":"any","limit":3}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('tx_statute_search', {
"code": "IN",
"chapter": "544",
"query": "age condition",
"match": "any",
"limit": 3
});
More examples
{
"code": "IN",
"chapter": "2210",
"query": "roof",
"limit": 3
}
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
reason | string | |
message | string | |
hint | string | |
code | string | |
code_name | string | |
chapter | string | |
query | string | |
match | string | |
sections_scanned | number | |
total_matches | number | |
returned | number | |
upstream_fetches | number | |
results | array | |
url | string | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"reason": {
"type": "string"
},
"message": {
"type": "string"
},
"hint": {
"type": "string"
},
"code": {
"type": "string"
},
"code_name": {
"type": "string"
},
"chapter": {
"type": "string"
},
"query": {
"type": "string"
},
"match": {
"type": "string"
},
"sections_scanned": {
"type": "number"
},
"total_matches": {
"type": "number"
},
"returned": {
"type": "number"
},
"upstream_fetches": {
"type": "number"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"citation": {
"type": "string"
},
"section": {
"type": "string"
},
"heading": {
"type": [
"string",
"null"
]
},
"matched_words": {
"type": "array",
"items": {
"type": "string"
}
},
"hits": {
"type": "number"
},
"excerpt": {
"type": "string"
}
},
"additionalProperties": true
}
},
"url": {
"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 texas-code pack
{
"mcpServers": {
"texas-code": {
"url": "https://gateway.pipeworx.io/texas-code/mcp"
}
}
}
See Getting Started for client-specific install steps.