Scotcourts

v0.2.1
io.github.pipeworx-io/scotcourts Checked 7 hours ago Published 26 days ago

Scottish Courts and Tribunals Service (SCTS) — judgment search.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_scottish_judgments

Search Scottish court and tribunal judgments from the Scottish Courts and Tribunals Service (SCTS), published at scotcourts.gov.uk/judgments/ from 1999 onward: Court of Session, High Court of Justiciary, the National Personal Injury Court, Sheriff Appeal Courts, Sheriff Court civil/criminal, and the Scottish Upper Tribunal chambers. Returns title, court, judges, date and a document_link to the judgment PDF (fetch it with get_scottish_judgment). The `total` field is the true corpus match count (pagination.count.total upstream) — it is not the number of rows in this response, which is capped b…

ParameterTypeDescription
courtstringCourt or Chamber to narrow to. Must match one of: Court of Session, High Court of Justiciary, National Personal Injury Court, Sheriff Appeal Court Civil, Sheriff Appeal Court Criminal, Sheriff Court C…
from_datestringEarliest date of opinion/decision, YYYY-MM-DD.
limitnumberJudgments per page, 1-50 (default 20).
pagenumberPage number, 1-based (default 1).
querystringFree-text search over the judgment (e.g. a party name, a distinctive phrase, "negligence"). Optional — omit to browse by court/date alone.
to_datestringLatest date of opinion/decision, YYYY-MM-DD.

get_scottish_judgment

Resolve a Scottish Courts judgment PDF and confirm it is actually reachable. Pass document_link exactly as returned by search_scottish_judgments (a relative /media/... path or absolute URL), or a case name / citation to look one up first. SCTS judgments are PDF-only — this tool returns the verified PDF URL, HTTP status, content-type and size, and text_extracted: false; it does NOT extract or return the judgment text (no PDF-text pipeline exists in this catalog). Fetch pdf_url to read the actual judgment.

ParameterTypeDescription
document_linkstringThe documentLink / document_link value from search_scottish_judgments, e.g. "/media/id5nvoe1/court-of-session-judgement-appeal-by-sca-against-mma-27-october-2020.pdf".
querystringAlternative to document_link: a case name or distinctive phrase to look up the judgment by, if you do not already have its document_link.