Rule status, outline and changes
get_legislationFetches a consolidated Spanish law’s current status, outline, and later amendments (most recent first) to help you review legal changes and locate block IDs for article-level reading.
Instructions
Describe one consolidated rule: its status today, its outline and its later changes.
Later changes come most recent first. Use the outline's block_id with read_legislation_block to read an article.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"law_id": "<law_id>"
},
"name": "get_legislation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law_id | Yes | BOE identifier, such as BOE-A-2018-16673. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| rank | Yes | ||
| scope | Yes | ||
| title | Yes | ||
| 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. | |
| status | Yes | ||
| eli_url | No | European Legislation Identifier. | |
| enacted | No | Date of the rule itself. | |
| outline | Yes | ||
| subjects | Yes | Subject terms assigned by the BOE. | |
| published | Yes | ||
| department | Yes | ||
| repeal_date | No | Set when the rule is repealed or will be on that date. | |
| last_updated | Yes | Last update of the consolidated text (UTC). | |
| in_force_from | No | ||
| later_changes | Yes | Most recent changes first, capped; later_changes_total says how many exist. | |
| official_number | No | ||
| later_changes_total | Yes | ||
| consolidation_status | Yes | Whether the BOE has finished consolidating it. |