Search a collection
searchSearch a collection (bills, domain, constitutions, statutes, regulations). For US bills or law: bills holds federal and state bills, domain holds the U.S. Code, C.F.R. and U.S. Constitution.
search_type for bills and domain. If you omit search_type on bills, the search uses KEYWORD when the query holds a bill number (HR1, S. 1234, HB 529), a number alone that is not a year (529), the word Act, or a quoted phrase, and max_distance is not set. Otherwise it uses HYBRID, so a topic with a number in it (529 plan, 401(k)) stays HYBRID. Without search_type on domain, the search uses KEYWORD when the query holds a printed citation (26 U.S.C. 501, 12 CFR 1026), a lone non-year number, the word Act, or a quoted phrase, and max_distance is not set. Otherwise HYBRID. HYBRID blends keyword and vector scores; on bills, if unavailable, retry KEYWORD. KEYWORD matches exact terms, citations and bill numbers. SIMILARITY is vector search for a concept with no fixed wording and takes tens of seconds. Constitutions, statutes and regulations serve SIMILARITY only.
filters is the list_items object (statutes and regulations: jurisdictionIsoCodes). totalCountIsLowerBound true means totalCount is a floor, not the whole match set. Bill and domain hits carry a match with score, source and excerpt. A domain hit's own excerpt appears only when it differs. cosineDistance is absent on keyword-only matches. Only enacted true (stage "Law") means the bill became law. include_links=True adds resource-link blocks, which cost more than the rows. limit max 100; pass nextOffset as after for the next page.
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": {
"collection": "<collection>",
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| limit | No | ||
| query | Yes | ||
| filters | No | ||
| collection | Yes | ||
| search_type | No | ||
| max_distance | No | ||
| include_links | No | ||
| response_format | No | Selection-set size for get/list/search results. | concise |