get_legal_document
ato.gov.auRetrieves a specific ATO Legal Database document from https://www.ato.gov.au by document ID. Returns the complete document text and its non-empty Dublin Core metadata, including title, type, dates, keywords, and descriptions when available.
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is get_legal_document?
Retrieves a specific ATO Legal Database document from https://www.ato.gov.au by document ID. Returns the complete document text and its non-empty Dublin Core metadata, including title, type, dates, keywords, and descriptions when available. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass doc_id and get the result back without maintaining a scraper.
Response
{
"doc_id": "<string>",
"metadata": {},
"content_text": "<string>",
"document_url": "<string>"
}Call it
curl --location 'https://us-prod.notte.cc/functions/0884658a-f8b4-4c07-bb1b-bd1ac3bc15f7/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "0884658a-f8b4-4c07-bb1b-bd1ac3bc15f7",
"variables": {
"doc_id": "AID/AID201364/00001"
}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
Use the Anything API MCP server (https://anything.notte.cc/mcp). Call run(function_id="0884658a-f8b4-4c07-bb1b-bd1ac3bc15f7") — the "get_legal_document" function, which retrieves a specific ATO Legal Database document from https://www.ato.gov.au by document ID. Returns the complete document text and its non-empty Dublin Core metadata, including title, type, dates, keywords, and descriptions when available.. It takes doc_id (str). Return the result as structured JSON.