search_legislation
Search consolidated Spanish legislation by query, dates, title, department, legal range, and matter. Optionally include repealed laws.
Instructions
Search consolidated Spanish legislation. Filter by query, dates, title, department, legal range (Ley, Real Decreto, etc.), matter, and include/exclude repealed laws.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results to return | |
| query | Yes | Search query text | |
| title | No | Filter by title (partial match) | |
| offset | No | Number of results to skip (for pagination) | |
| date_to | No | End date for filtering (YYYY-MM-DD format) | |
| date_from | No | Start date for filtering (YYYY-MM-DD format) | |
| matter_code | No | Filter by matter/subject code (use get_matters_table to get codes) | |
| department_code | No | Filter by department code (use get_departments_table to get codes) | |
| legal_range_code | No | Filter by legal range code: Ley, Real Decreto, etc. (use get_legal_ranges_table to get codes) | |
| include_derogated | No | Include repealed/derogated legislation in results |