get_amendment_history
Returns the amendment history recorded from the Federal Register for the compilations Advisor holds, and, where a title's endnotes are held as structured data, the history the compilation itself prints.
| Fact | Value |
|---|---|
| Tool | get_amendment_history |
| Partner scope required | legislation:read |
| Subscriber tier required | AI Pro |
Accepts as_at | no |
Parameters
| Name | Type | Required | Default |
|---|---|---|---|
legislation_id | string | yes | |
provision | string | no | null |
offset | integer | no | 0 |
limit | integer | no | 50 |
versions_offset | integer | no | 0 |
versions_limit | integer | no | 20 |
Notes
- Not necessarily the whole history.
coveragesays how many compilations are held against the current compilation number;completeis true only when every one is. Earlier compilations are on the Federal Register. amendment_historylists the version records held, newest first, each with itsreasons: what was affected, which provisions and by which law (amended_by_title_id). Page it withversions_limit(default 20, at most 50) andversions_offset;versions_pagegives the total and the next offset, and says when a page was cut to fit.endnote_historyis the compilation's own printed history: passprovision(for example"s 1317E"or"Part 2D.1") for one provision's rows, or omit it for the list of amending laws.offsetandlimitpage this block, separately from the versions.- Endnotes are not law. Every endnote block carries
not_law: true.
Request (get_amendment_history with {"legislation_id":"C2004A03712","versions_limit":3,"limit":3})
Python SDK
import asyncio, os
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
headers = {"Authorization": f"Bearer {os.environ['LAWATLAS_API_KEY']}"}
async with streamablehttp_client("https://advisor.lawatlas.ai/api/mcp-http/mcp", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool("get_amendment_history", {
"legislation_id": "C2004A03712",
"versions_limit": 3,
"limit": 3
})
print(result.content[0].text)
asyncio.run(main())
curl
curl -s https://advisor.lawatlas.ai/api/mcp-http/mcp \
-H "Authorization: Bearer $LAWATLAS_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_amendment_history","arguments":{"legislation_id":"C2004A03712","versions_limit":3,"limit":3}}}'
Response, as Advisor returned it on 10 October 2026. The tool's result is the JSON text of result.content[0].text; lists and long text are trimmed where marked "...".
{
"schema_version": "3.5",
"legislation_id": "eae28dff-3ff5-48eb-af3f-38686e6f650e",
"title": "Privacy Act 1988",
"coverage": {
"versions_held": 111,
"current_compilation_number": 104,
"earliest_compilation_held": 70,
"compilations_not_held": 69,
"text_held_for": [
{
"version_label": "compilation_104",
"compilation_number": 104,
"register_id": "C2026C00227",
"start_date": "2026-06-04",
"text_held": true
}
],
"complete": false
},
"notes": [
"Partial history: only the compilations this service has ingested are listed (111 version records; the current compilation is number 104). Earlier compilations and their amendments are on the Federal Register of Legislation: https://www.legislation.gov.au/Details/C2026C00227."
],
"amendment_history": [
{
"version_label": "scheduled_2026-12-10",
"register_id": null,
"registered_at": null,
"start_date": "2026-12-10T00:00:00",
"is_current": false,
"has_unincorporated_amendments": true,
"reasons": [
{
"affect": "Amend",
"amended_by_title_id": "C2024A00128",
"provisions": "sch 1 (items 87, 88)",
"markdown": "sch 1 (items 87, 88) of the [Privacy and Other Legislation Amendment Act 2024](/C2024A00128)"
}
]
},
{
"version_label": "compilation_104",
"register_id": "C2026C00227",
"registered_at": "2026-06-17T08:11:06.826115",
"start_date": "2026-06-04T00:00:00",
"is_current": true,
"has_unincorporated_amendments": false,
"reasons": [
{
"affect": "Amend",
"amended_by_title_id": "C2025A00075",
"provisions": "sch 1 (items 240, 241)",
"markdown": "sch 1 (items 240, 241) of the [Strengthening Oversight of the National Intelligence Community Act 2025](/C2025A00075)"
}
]
},
{
"version_label": "compilation_103",
"register_id": null,
"registered_at": "2025-06-10T15:35:49.855719",
"start_date": "2025-06-10T00:00:00",
"is_current": false,
"has_unincorporated_amendments": false,
"reasons": [
{
"affect": "Amend",
"amended_by_title_id": "C2024A00128",
"provisions": "sch 2 (items 1-10)",
"markdown": "sch 2 (items 1-10) of the [Privacy and Other Legislation Amendment Act 2024](/C2024A00128)"
}
]
}
],
"versions_page": {
"returned": 3,
"total": 111,
"offset": 0,
"next_offset": 3,
"order": "newest first",
"limit": 3,
"limit_requested": 3,
"limit_applied": 3
},
"endnote_history": {
"not_law": true,
"compilation": "compilation_104",
"register_id": "C2026C00227",
"anchor_state": "not_assessed",
"note": "Endnotes are not law. They record this compilation's history - required by the Legislation Act 2003 s 15P and the Legislation Rules s 8 - and carry no verdict against the authorised PDF (not_assessed).",
"source": "Endnote 3—Legislation history",
"total_rows": 132,
"offset": 0,
"laws": [
{
"eid": "endnote_3__row_1",
"kind": "law",
"law_key": "1988 No 119",
"cells": [
[
"Privacy Act 1988"
],
[
"119, 1988"
],
[],
"... 2 more"
],
"link": "/l/C2004A03712/compilation_104/endnotes/endnote_3__row_1"
},
{
"eid": "endnote_3__row_2",
"kind": "law",
"law_key": "1990 No 11",
"cells": [
[
"Law and Justice Legislation Amendment Act 1989"
],
[
"11, 1990"
],
[],
"... 2 more"
],
"link": "/l/C2004A03712/compilation_104/endnotes/endnote_3__row_2"
},
{
"eid": "endnote_3__row_3",
"kind": "law",
"law_key": "1990 No 75",
"cells": [
[
"Defence Legislation Amendment Act 1990"
],
[
"75, 1990"
],
[],
"... 2 more"
],
"link": "/l/C2004A03712/compilation_104/endnotes/endnote_3__row_3"
}
],
"hint": "Pass `provision` (e.g. 's 1317E') for one provision's amendment history.",
"next_offset": 3,
"limit": 3,
"limit_requested": 3,
"limit_applied": 3
}
}
Errors
| Code | Meaning | What to do |
|---|---|---|
INVALID_ARGUMENT | An id is malformed | Correct the id |
NOT_FOUND | No title has this id | Find the title with resolve_reference |
TITLE_NOT_IN_FORCE | The title is not in force | The Federal Register holds its history; show the frl_link |