search_legislation
Search Danish statutes and regulations by keyword using full-text search with Boolean operators and relevance ranking to retrieve matching provisions with context and metadata.
Instructions
Search Danish statutes and regulations by keyword.
Searches provision text using FTS5 with BM25 ranking. Supports boolean operators (AND, OR, NOT), phrase search ("exact phrase"), and prefix matching (term*).
Returns matched provisions with snippets, relevance scores, and document metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results (default: 10, max: 50) | |
| query | Yes | Search query in Danish or English. Supports FTS5 syntax. | |
| status | No | Filter by document status | |
| as_of_date | No | Optional historical date filter (YYYY-MM-DD). Returns versions valid on that date. | |
| document_id | No | Filter to a specific statute by document ID (e.g., "2018:218") |