list_laws¶
List supported laws, optionally filtered by law metadata.
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
query |
string |
no | Free-text filter applied to law metadata (abbreviation, full name, jurisdiction). |
Returns¶
An object with a laws array. Each entry contains:
{
laws: Array<{
code: string; // law abbreviation, e.g. "bgb"
title: string; // full official title
jurisdiction: string; // e.g. "federal", "eu"
source_url: string; // official source URL
norm_count: number; // number of normalized norms
}>
}
Example¶
result = mcp_client.call_tool("list_laws", {})
{
"laws": [
{
"code": "bgb",
"title": "Bürgerliches Gesetzbuch",
"jurisdiction": "federal",
"source_url": "https://www.gesetze-im-internet.de/bgb/",
"norm_count": 2385
}
]
}
With a query filter:
result = mcp_client.call_tool("list_laws", {"query": "datenschutz"})
Notes¶
- Returns all loaded laws when
queryis omitted ornull. - Query matching is case-insensitive and partial.
- Laws with terminal state
importedare returned; laws with other terminal states appear inget_source_limitationsoutput.
Related¶
get_law— fetch full detail for one law code.search_laws— full-text search across norm content.
Source¶
mcp/server.py — @app.tool() definition for list_laws.