search_legislation
Search Icelandic laws and regulations using keywords. Supports full-text search with boolean operators, phrase matching, and filtering by status or date.
Instructions
Search Icelandic statutes (lög) and regulations by keyword.
Searches provision text using FTS5 full-text search 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. Icelandic law numbers use the format number/year (e.g., "90/2018" for Persónuverndarlög).
When NOT to use: If you already know the exact law number and provision, use get_provision instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query in Icelandic or English. Supports FTS5 syntax (e.g., "persónuupplýsingar", "réttindi AND friðhelgi"). | |
| document_id | No | Filter to a specific statute by law number (e.g., "90/2018" for Persónuverndarlög) | |
| status | No | Filter by document status | |
| as_of_date | No | Optional historical date filter (YYYY-MM-DD). Returns provisions valid on that date. | |
| limit | No | Maximum results (default: 10, max: 50) |