Search laws and court decisions
search_legalSearch BOTH legislation and court cases in one call.
Returns the most relevant law sections AND court decisions for the
query, **grouped by type**. Use this when a legal question may be
answered by statute or by case law and you don't yet know which —
e.g. "ortsübliche Vergleichsmiete" surfaces § 558 BGB *and* BGH
decisions together. For type-specific control (citation filters,
court/date filters), use ``search_cases`` / ``search_laws``.
Matching is on the words of the text: a law section is found only
if it contains the query terms. Colloquial terms that the statute
doesn't use (e.g. "Eigenbedarf"; § 573 BGB says "die Räume als
Wohnung für sich ... benötigt") find case law but not that section.
Then search with the statute's wording, or read the cases' cited
sections via ``get_case_references``.
Results are grouped rather than merged into one ranked list on
purpose: court decisions are long and out-score short statute
texts on relevance, so a naive merged ranking returns only cases
and buries the on-point law.
Args:
query: Search query text (supports Lucene syntax and "phrases").
limit: Max results per type (default 5, max 25). Values above 25
are clamped; the response then includes ``limit_clamped:
true`` and the original ``requested_limit``.
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_legal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes |