get_hansard_speech

Returns one speech's complete text, unaltered, with its speaker, date, the attribution and the official_record link. Pass a speech_id from search_hansard.

FactValue
Toolget_hansard_speech
Partner scope requiredhansard:read
Subscriber tier requiredAI Pro
Accepts as_atno

Parameters

NameTypeRequiredDefault
speech_idstringyes
from_paragraphintegerno1

Notes

Note: Hansard passages come with conditions of use, and your service must keep them.

  • Verbatim. Reproduce a passage unaltered. Analysis around a quotation is fine; rewriting the quotation is not.
  • Attributed. Attribute each passage to "Parliamentary Debates (Hansard), Parliament of Australia" and show the reader the official_record link.
  • Not fetched. Show the official_record link, do not fetch it: aph.gov.au refuses automated requests.
  • Not the official record. Advisor is a search over the record, not the record. Label your service the same way.
  • Not for satire, ridicule or political advertising, or to misrepresent any Senator or Member.

Request (get_hansard_speech with {"speech_id":"f798ae77-e72d-4a72-8d33-477a0f92ee6b"})

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_hansard_speech", {
                "speech_id": "f798ae77-e72d-4a72-8d33-477a0f92ee6b"
            })
            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_hansard_speech","arguments":{"speech_id":"f798ae77-e72d-4a72-8d33-477a0f92ee6b"}}}'

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.0",
  "result": {
    "text": "I present two government responses to committee reports as follows:\nLegal and Constitutional Legislation Committee—Report—Defence Legislation Amendment (Aid to Civilian Authorities) Bill 2005—Government response, dated November 2006.\nLegal and Constitutional References Committee—Report—The real Big Brother: Inquiry into the Privacy Act 1988—Govern-ment response.\nIn accordance with the usual practice, I seek leave to have the documents incorporated in Hansard.\nLeave granted.\nThe documents read as follows—\nGOVERNMENT RESPONSE TO SENATE LEGAL AND CONSTITUTIONAL LEG-ISLA-TION COMMITTEE REVIEW OF T ...",
    "more": false,
    "paragraph_count": 110,
    "speech_id": "f798ae77-e72d-4a72-8d33-477a0f92ee6b",
    "speaker": "Nick Minchin",
    "chamber": "senate",
    "date": "2006-11-30",
    "debate_title": "Legal and Constitutional Affairs Committee; Reports: Government Responses",
    "word_count": 1670,
    "official_record": "https://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;adv=yes;orderBy=_fragment_number,doc_date-rev;page=0;query=Dataset%3Ahansards,hansards80%20Date%3A30%2F11%2F2006;rec=0;resCount=Default"
  },
  "source": "Parliamentary Debates (Hansard), Parliament of Australia",
  "link_note": "official_record is a citation for a human reader, not a fetchable resource: aph.gov.au returns 403 to automated requests. Show the link to the user rather than following it. It opens the whole sitting day for that chamber - use `page_no` where present, and `speaker` and `debate_title`, to point them at the speech.",
  "not_official_record": "Advisor is not the official record. This is a reproduction of the parliamentary record; where the two differ, Hansard on aph.gov.au governs.",
  "usage": "Verbatim text. Quote it unaltered with the attribution above and SHOW the user official_record as a link; do not fetch it, do not paraphrase the words, and do not use this material for satire, ridicule, political advertising, or to misrepresent any Senator or Member."
}

Errors

CodeMeaningWhat to do
NOT_FOUNDNo speech has this idUse a speech_id from search_hansard
TERMS_REQUIREDA partner organisation has not accepted the current Hansard conditionsAccept them on the partner page

Related tools