wex_search
Pack: cornell-wex · 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/wex_search for the schema, then POST the same URL with its arguments for the data.
Find Wex legal-encyclopedia entries whose titles contain the given words, searched across the whole 5,600-entry index and ranked by how many words match. Use it when you do not know the exact term (e.g. “possession” lists adverse possession, constructive possession, possession of stolen goods). Returns entry titles with their URLs; pass one to wex_define for the definition. Free (CC BY-NC-SA, 0 credits).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | One or more words expected in the entry title, e.g. “possession”, “statute of limitations”, “warrant”. |
limit | number | no | Maximum entries to return (default 20, max 100). |
Example call
Arguments
{
"query": "possession",
"limit": 10
}
curl
curl -X POST https://gateway.pipeworx.io/cornell-wex/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"wex_search","arguments":{"query":"possession","limit":10}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('wex_search', {
"query": "possession",
"limit": 10
});
More examples
{
"query": "doctrine of laches",
"limit": 5
}
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 cornell-wex pack
{
"mcpServers": {
"cornell-wex": {
"url": "https://gateway.pipeworx.io/cornell-wex/mcp"
}
}
}
See Getting Started for client-specific install steps.