Search legislation
search_legislationSearch Spain's consolidated legislation by title, text or official number, filtering by state or regional scope and publication dates. Retrieve rules in force from the BOE gazette.
Instructions
Search Spain's consolidated legislation: laws, royal decrees, orders and more.
Give at least one of title_words, text_words or official_number. Results come newest publication first. The collection holds the most relevant state and regional rules, not every item ever published in the BOE.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_legislation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| scope | No | State rules or regional (autonómicas) rules. Defaults to both. | |
| offset | No | ||
| text_words | No | Words that must all appear in the full text. | |
| title_words | No | Words that must all appear in the title. | |
| published_to | No | ||
| only_in_force | No | Leave out rules the BOE marks as no longer in force. | |
| published_from | No | ||
| official_number | No | Official number, such as 3/2018 or 39/2015. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notice | No | Basado en datos de la Agencia Estatal Boletín Oficial del Estado (https://www.boe.es). Texto consolidado de carácter meramente informativo: solo la versión electrónica firmada del BOE, en PDF, es oficial y auténtica. | |
| results | Yes | ||
| next_offset | No | Pass it as offset to get the next page; null on the last page. |