Read an article
read_legislation_blockRetrieve the current wording and in-force status of a consolidated legislation block—article, preamble, annex, or provision—plus later approved text and earlier version history.
Instructions
Read the latest wording of one block of a consolidated rule, and whether it is in force.
A block is an article, the preamble, an annex or a provision. The answer also gives any approved wording that takes effect later, and lists the earlier versions of the block with the rules that introduced them. Check in_force before presenting the text as law.
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>",
"block_id": "<block_id>"
},
"name": "read_legislation_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law_id | Yes | BOE identifier, such as BOE-A-2018-16673. | |
| block_id | Yes | block_id from the outline of get_legislation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| kind | Yes | precepto, preambulo, parte_final, firma, nota_inicial… | |
| text | Yes | Wording of current_version as plain text; empty when there is none. Notes start with 'Nota:'. | |
| title | Yes | ||
| law_id | 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. | |
| block_id | Yes | ||
| in_force | Yes | True only when the rule is in force and `text` has taken effect. A repealed rule keeps its last wording, which is no longer in force. | |
| truncated | Yes | True when a text was cut to keep the answer short. | |
| law_status | Yes | Status of the whole rule today. | |
| upcoming_text | No | Wording of the soonest upcoming version, if there is one. | |
| current_version | Yes | Latest version that has taken effect; null when the block only has wording that takes effect later. | |
| previous_versions | Yes | Versions no longer in force, oldest first. | |
| upcoming_versions | Yes | Approved wordings that take effect after today, soonest first. |