Search law
search_lawSearch the text of all the law in force on a date, across every jurisdiction or one. Plain text by default.
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": {
"query": "<query>"
},
"name": "search_law"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | An in-force date, YYYY-MM-DD, or "today". Defaults to today. | |
| kind | No | laws (default; "law" is read the same): law only. judgments: court decisions (case law) only. all: both. A jurisdiction that names case law (a path ending in /caselaw) reads it too. | |
| query | Yes | Words or a phrase; a regular expression if regex is true. | |
| regex | No | Read query as a regular expression (POSIX extended, as git grep -E reads it) instead of plain text (default false). | |
| offset | No | Rows to skip: the next_offset the answer before gave in "page" (default 0). | |
| max_results | No | Matching lines to return (default 30, at most 200). | |
| jurisdiction | No | Optional jurisdiction prefix, for example "germany", "united-states/federal" or "united-kingdom/uk/legislation/uksi". | |
| case_sensitive | No | Match upper and lower case as written (default false: either case matches). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||