Marketplace
No threads yet
Live

search_legal_documents

ato.gov.au

Searches the ATO Legal Database on https://www.ato.gov.au for rulings, legislation, cases, interpretative decisions, and related legal documents. Returns paginated titles, document IDs, subjects, summaries, and canonical document links.

Parameters5
Runs9
Updated10d ago
Operational9 runs · 100% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is search_legal_documents?

Searches the ATO Legal Database on https://www.ato.gov.au for rulings, legislation, cases, interpretative decisions, and related legal documents. Returns paginated titles, document IDs, subjects, summaries, and canonical document links. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass query, document_category, exact_phrase, page, page_size and get the result back without maintaining a scraper.

Response

{
  "page": 0,
  "query": "<string>",
  "results": [
    {}
  ],
  "page_size": 0,
  "total_pages": 0,
  "exact_phrase": true,
  "total_results": 0,
  "returned_count": 0,
  "document_category": "<string>"
}

Call it

curl --location 'https://us-prod.notte.cc/functions/cb354346-1420-41fb-bee2-194a0557b3af/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "cb354346-1420-41fb-bee2-194a0557b3af",
    "variables": {
        "query": "capital gains tax",
        "document_category": "all",
        "exact_phrase": false,
        "page": 1,
        "page_size": 10
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="cb354346-1420-41fb-bee2-194a0557b3af") — the "search_legal_documents" function, which searches the ATO Legal Database on https://www.ato.gov.au for rulings, legislation, cases, interpretative decisions, and related legal documents. Returns paginated titles, document IDs, subjects, summaries, and canonical document links..

It takes query (str), document_category (str), exact_phrase (bool), page (int), page_size (int). Return the result as structured JSON.