search_legislation
Search FULL BILL TEXT -- not just known-bill-number lookup. q is
matched against titles, descriptions, AND ingested document text via
Postgres websearch_to_tsquery (supports "quoted phrases", OR, and
-exclusion, same syntax as a search engine), with a fuzzy pg_trgm
title-similarity fallback when the exact query has no hits. q can
ALSO be a bill number ("HB 123", "H.B. 123", "hb123" all match) and
that fast path is tried first. Optionally filter by jurisdiction
(two-letter state code or name), chamber, and status.
For a curated cross-state slice of a subject (e.g. "every AI bill in the
country") rather than an ad-hoc keyword search, call list_topics first --
its membership rules also match on structured subject tags this
full-text search does not see.Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"q": "<q>"
},
"name": "search_legislation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | ||
| limit | No | ||
| status | No | ||
| chamber | No | ||
| jurisdiction | No |